We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5b2072a commit 979bba6Copy full SHA for 979bba6
libraries/mbed/targets/hal/TARGET_NXP/TARGET_LPC11CXX/sleep.c
@@ -18,8 +18,10 @@
18
#include "mbed_interface.h"
19
20
void sleep(void) {
21
+#if DEVICE_SEMIHOST
22
// ensure debug is disconnected
23
mbed_interface_disconnect();
24
+#endif
25
26
// PCON[DPDEN] set to sleep
27
LPC_PMU->PCON = 0x0;
@@ -58,8 +60,10 @@ void sleep(void) {
58
60
*/
59
61
62
void deepsleep(void) {
63
64
65
66
67
68
// PCON[DPDEN] set to deepsleep
69
LPC_PMU->PCON = 0x2;
0 commit comments