nrf5/modules/machine: Adding __WFI() on machine.deepsleep()

This commit is contained in:
Glenn Ruben Bakke 2017-03-06 23:36:36 +01:00
parent 4e1b9aca79
commit 2e1335b051
1 changed files with 1 additions and 0 deletions

View File

@ -154,6 +154,7 @@ STATIC mp_obj_t machine_sleep(void) {
MP_DEFINE_CONST_FUN_OBJ_0(machine_sleep_obj, machine_sleep); MP_DEFINE_CONST_FUN_OBJ_0(machine_sleep_obj, machine_sleep);
STATIC mp_obj_t machine_deepsleep(void) { STATIC mp_obj_t machine_deepsleep(void) {
__WFI();
return mp_const_none; return mp_const_none;
} }
MP_DEFINE_CONST_FUN_OBJ_0(machine_deepsleep_obj, machine_deepsleep); MP_DEFINE_CONST_FUN_OBJ_0(machine_deepsleep_obj, machine_deepsleep);