mbed library sources
Dependents: frdm_kl05z_gpio_test
Fork of mbed-src by
Diff: targets/hal/TARGET_NORDIC/TARGET_NRF51822/sleep.c
- Revision:
- 104:a6a92e2e5a92
- Parent:
- 85:e1a8e879a6a9
--- a/targets/hal/TARGET_NORDIC/TARGET_NRF51822/sleep.c Thu Feb 20 23:00:08 2014 +0000 +++ b/targets/hal/TARGET_NORDIC/TARGET_NRF51822/sleep.c Fri Feb 21 12:15:10 2014 +0000 @@ -21,10 +21,10 @@ // ensure debug is disconnected if semihost is enabled.... NRF_POWER->TASKS_LOWPWR=1; // wait for interrupt - __WFI(); + __WFE(); } void deepsleep(void) { sleep(); - NRF_POWER->SYSTEMOFF=1; + // NRF_POWER->SYSTEMOFF=1; }