- fix F411 F334 systeminit when HSI used - portinout always read IDR regardless of port direction

Fork of mbed-src by mbed official

Revision:
19:398f4c622e1b
Parent:
13:0645d8841f51
Child:
227:7bd0639b8911
--- a/targets/hal/TARGET_NXP/TARGET_LPC11UXX/pinmap.c	Mon Aug 12 13:49:01 2013 +0300
+++ b/targets/hal/TARGET_NXP/TARGET_LPC11UXX/pinmap.c	Mon Aug 19 18:17:02 2013 +0300
@@ -20,7 +20,7 @@
 #define LPC_IOCON1_BASE (LPC_IOCON_BASE + 0x60)
 
 void pin_function(PinName pin, int function) {
-    if (pin == (uint32_t)NC) return;
+    if (pin == (PinName)NC) return;
     
     uint32_t pin_number = (uint32_t)pin;
     
@@ -33,7 +33,7 @@
 }
 
 void pin_mode(PinName pin, PinMode mode) {
-    if (pin == (uint32_t)NC) { return; }
+    if (pin == (PinName)NC) { return; }
     
     uint32_t pin_number = (uint32_t)pin;
     uint32_t drain = ((uint32_t) mode & (uint32_t) OpenDrain) >> 2;