mbed library sources

Fork of mbed-src by mbed official

Revision:
339:40bd4701f3e2
Parent:
324:406fd2029f23
Child:
396:16d0d69d12f5
--- a/targets/hal/TARGET_Freescale/TARGET_KPSDK_MCUS/serial_api.c	Mon Oct 06 11:00:07 2014 +0100
+++ b/targets/hal/TARGET_Freescale/TARGET_KPSDK_MCUS/serial_api.c	Mon Oct 06 11:45:07 2014 +0100
@@ -68,8 +68,12 @@
     pinmap_pinout(tx, PinMap_UART_TX);
     pinmap_pinout(rx, PinMap_UART_RX);
 
-    pin_mode(tx, PullUp);
-    pin_mode(rx, PullUp);
+    if (tx != NC) {
+        pin_mode(tx, PullUp);
+    }
+    if (rx != NC) {
+        pin_mode(rx, PullUp);
+    }
 
     if (obj->index == STDIO_UART) {
         stdio_uart_inited = 1;