Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of mbed-src by
Diff: targets/hal/TARGET_NXP/TARGET_LPC408X/pinmap.c
- Revision:
- 29:6ac4027eff2b
- Parent:
- 15:4892fe388435
- Child:
- 227:7bd0639b8911
--- 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;