mbed SDK library sources

Fork of mbed-src by mbed official

Development branch of the mbed library sources. This library is kept in synch with the latest changes from the mbed SDK and it is not guaranteed to work.

If you are looking for a stable and tested release, please import one of the official mbed library releases:

Import librarymbed

The official Mbed 2 C/C++ SDK provides the software platform and libraries to build your applications.

Revision:
59:ef93cc6bbf65
Parent:
51:7838415c99e7
--- a/targets/hal/TARGET_NXP/TARGET_LPC11UXX/serial_api.c	Fri Dec 13 09:30:05 2013 +0000
+++ b/targets/hal/TARGET_NXP/TARGET_LPC11UXX/serial_api.c	Mon Dec 16 09:15:05 2013 +0000
@@ -63,9 +63,11 @@
     
     // [TODO] Consider more elegant approach
     // disconnect USBTX/RX mapping mux, for case when switching ports
+#ifdef USBTX
     pin_function(USBTX, 0);
     pin_function(USBRX, 0);
-    
+#endif
+
     // enable fifos and default rx trigger level
     obj->uart->FCR = 1 << 0  // FIFO Enable - 0 = Disables, 1 = Enabled
                    | 0 << 1  // Rx Fifo Reset