Mbed Library with modified HSE_Startup timeout
Fork of mbed-src by
Diff: targets/hal/TARGET_NXP/TARGET_LPC11UXX/sleep.c
- Revision:
- 75:99bf659e4489
- Parent:
- 13:0645d8841f51
--- 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;