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.
Fork of mbed-src by
Diff: targets/hal/TARGET_NXP/TARGET_LPC11CXX/sleep.c
- Revision:
- 27:3315632cc01d
- Parent:
- 20:4263a77256ae
diff -r 3a65fe875a02 -r 3315632cc01d targets/hal/TARGET_NXP/TARGET_LPC11CXX/sleep.c
--- 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;
