mbed library sources, include can_api for nucleo-f091rc

Dependents:   CanNucleoF0_example

Fork of mbed-src by mbed official

Revision:
339:40bd4701f3e2
Parent:
253:fd34e7cf1b98
--- a/targets/hal/TARGET_NXP/TARGET_LPC176X/serial_api.c	Mon Oct 06 11:00:07 2014 +0100
+++ b/targets/hal/TARGET_NXP/TARGET_LPC176X/serial_api.c	Mon Oct 06 11:45:07 2014 +0100
@@ -120,8 +120,12 @@
     pinmap_pinout(rx, PinMap_UART_RX);
 
     // set rx/tx pins in PullUp mode
-    pin_mode(tx, PullUp);
-    pin_mode(rx, PullUp);
+    if (tx != NC) {
+        pin_mode(tx, PullUp);
+    }
+    if (rx != NC) {
+        pin_mode(rx, PullUp);
+    }
 
     switch (uart) {
         case UART_0: obj->index = 0; break;