Adapting lib to PIC32 based boards

Signed-off-by: Daniel Bittencourt <danielcbit@gmail.com>