mbed lib with startup delay fixed for Nucleo401RE

Fork of mbed-src by mbed official

Files at this revision

API Documentation at this revision

Comitter:
mbed_official
Date:
Thu Sep 19 10:00:04 2013 +0100
Parent:
26:3a65fe875a02
Child:
28:4b07695ba953
Commit message:
Synchronized with git revision 38ed9eb6a079e6355789c73ed0ec3ecd482826b6

Changed in this revision

targets/hal/TARGET_NXP/TARGET_LPC11CXX/sleep.c Show annotated file Show diff for this revision Revisions of this file
--- a/targets/hal/TARGET_NXP/TARGET_LPC11CXX/sleep.c	Thu Sep 19 09:45:05 2013 +0100
+++ b/targets/hal/TARGET_NXP/TARGET_LPC11CXX/sleep.c	Thu Sep 19 10:00:04 2013 +0100
@@ -18,8 +18,10 @@
 #include "mbed_interface.h"
 
 void sleep(void) {
+#if DEVICE_SEMIHOST
     // ensure debug is disconnected
     mbed_interface_disconnect();
+#endif
     
     // PCON[DPDEN] set to sleep
     LPC_PMU->PCON = 0x0;
@@ -58,8 +60,10 @@
 */
 
 void deepsleep(void) {
+#if DEVICE_SEMIHOST
     // ensure debug is disconnected
     mbed_interface_disconnect();
+#endif
     
     // PCON[DPDEN] set to deepsleep
     LPC_PMU->PCON = 0x2;