Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: SSD1306_smart_watch
Fork of mbed-src by
Diff: targets/hal/TARGET_NXP/TARGET_LPC11UXX/sleep.c
- Revision:
 - 75:99bf659e4489
 - Parent:
 - 13:0645d8841f51
 
diff -r 847f030b50ee -r 99bf659e4489 targets/hal/TARGET_NXP/TARGET_LPC11UXX/sleep.c
--- a/targets/hal/TARGET_NXP/TARGET_LPC11UXX/sleep.c	Tue Jan 14 22:15:04 2014 +0000
+++ b/targets/hal/TARGET_NXP/TARGET_LPC11UXX/sleep.c	Mon Jan 27 13:30:06 2014 +0000
@@ -19,7 +19,9 @@
 
 void sleep(void) {
     // ensure debug is disconnected
+    #if DEVICE_SEMIHOST
     mbed_interface_disconnect();
+    #endif
     
     // PCON[PD] set to sleep
     LPC_PMU->PCON = 0x0;
@@ -59,7 +61,9 @@
 
 void deepsleep(void) {
     // ensure debug is disconnected
+    #if DEVICE_SEMIHOST
     mbed_interface_disconnect();
+    #endif
     
     // PCON[PD] set to deepsleep
     LPC_PMU->PCON = 0x1;
    