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_NORDIC/TARGET_NRF51822/sleep.c
- Revision:
- 104:a6a92e2e5a92
- Parent:
- 85:e1a8e879a6a9
diff -r 9b881da47c92 -r a6a92e2e5a92 targets/hal/TARGET_NORDIC/TARGET_NRF51822/sleep.c --- 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; }