Updated Sleep

using WFE for nordic sleep
Removed systemoff call from deepleep since it does not retain program
state.
pull/185/head
tkuyucu 2014-02-17 15:54:39 +01:00
parent cfb9b992c3
commit 4d767c0dc8
1 changed files with 2 additions and 2 deletions

View File

@ -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;
}