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_LPC176X/sleep.c
- Revision:
- 79:6fdc4ea80ae0
- Parent:
- 13:0645d8841f51
diff -r 2cab419ff388 -r 6fdc4ea80ae0 targets/hal/TARGET_NXP/TARGET_LPC176X/sleep.c --- a/targets/hal/TARGET_NXP/TARGET_LPC176X/sleep.c Wed Jan 29 18:45:05 2014 +0000 +++ b/targets/hal/TARGET_NXP/TARGET_LPC176X/sleep.c Thu Jan 30 09:45:05 2014 +0000 @@ -18,9 +18,12 @@ #include "mbed_interface.h" void sleep(void) { + +#if (DEVICE_SEMIHOST == 1) // ensure debug is disconnected mbed_interface_disconnect(); - +#endif + // PCON[PD] set to sleep LPC_SC->PCON = 0x0; @@ -58,8 +61,11 @@ */ void deepsleep(void) { + +#if (DEVICE_SEMIHOST == 1) // ensure debug is disconnected mbed_interface_disconnect(); +#endif // PCON[PD] set to deepsleep sleep();