mbed library sources modified for open wear
Dependents: openwear-lifelogger-example
Fork of mbed-src by
Diff: targets/hal/TARGET_NXP/TARGET_LPC408X/pinmap.c
- Revision:
- 29:6ac4027eff2b
- Parent:
- 15:4892fe388435
- Child:
- 227:7bd0639b8911
diff -r 4b07695ba953 -r 6ac4027eff2b targets/hal/TARGET_NXP/TARGET_LPC408X/pinmap.c --- a/targets/hal/TARGET_NXP/TARGET_LPC408X/pinmap.c Fri Sep 20 10:00:04 2013 +0100 +++ b/targets/hal/TARGET_NXP/TARGET_LPC408X/pinmap.c Mon Sep 23 11:30:07 2013 +0100 @@ -17,7 +17,7 @@ #include "error.h" void pin_function(PinName pin, int function) { - if (pin == (uint32_t)NC) return; + if (pin == (PinName)NC) return; __IO uint32_t *reg = (__IO uint32_t*) (LPC_IOCON_BASE + 4 * pin); @@ -26,7 +26,7 @@ } void pin_mode(PinName pin, PinMode mode) { - if (pin == (uint32_t)NC) { return; } + if (pin == (PinName)NC) { return; } uint32_t drain = ((uint32_t) mode & (uint32_t) OpenDrain) >> 2;