mirror of https://github.com/ARMmbed/mbed-os.git
Updated Sleep
using WFE for nordic sleep Removed systemoff call from deepleep since it does not retain program state.pull/185/head
parent
cfb9b992c3
commit
4d767c0dc8
|
@ -21,10 +21,10 @@ void sleep(void) {
|
|||
// 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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue