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_MCU_NRF51822/sleep.c
- Revision:
- 300:55638feb26a4
- Parent:
- 270:e2babe29baf8
--- a/targets/hal/TARGET_NORDIC/TARGET_MCU_NRF51822/sleep.c Wed Aug 27 04:00:07 2014 +0100 +++ b/targets/hal/TARGET_NORDIC/TARGET_MCU_NRF51822/sleep.c Wed Aug 27 08:45:06 2014 +0100 @@ -17,14 +17,16 @@ #include "cmsis.h" #include "mbed_interface.h" -void sleep(void) { +void sleep(void) +{ // ensure debug is disconnected if semihost is enabled.... - NRF_POWER->TASKS_LOWPWR=1; + NRF_POWER->TASKS_LOWPWR = 1; // wait for interrupt __WFE(); } -void deepsleep(void) { +void deepsleep(void) +{ sleep(); - // NRF_POWER->SYSTEMOFF=1; + // NRF_POWER->SYSTEMOFF=1; }