nrf5/modules/machine: Adding __WFE() on machine.sleep()

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

View File

@ -148,6 +148,7 @@ STATIC mp_obj_t machine_soft_reset(void) {
MP_DEFINE_CONST_FUN_OBJ_0(machine_soft_reset_obj, machine_soft_reset);
STATIC mp_obj_t machine_sleep(void) {
__WFE();
return mp_const_none;
}
MP_DEFINE_CONST_FUN_OBJ_0(machine_sleep_obj, machine_sleep);