aboutsummaryrefslogtreecommitdiff
path: root/extmod/moduselect.c
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2016-12-02 16:40:39 +1100
committerDamien George <damien.p.george@gmail.com>2016-12-02 16:40:39 +1100
commit2d329c4a56580e17781febbfe6e42038fc3d9d03 (patch)
treeabbca65e8c2f839e23f4da00eee10b13aec3da31 /extmod/moduselect.c
parentebc8d730f1b1a95399c5c4cdd6f010aabf7a186d (diff)
extmod/moduselect: Use configurable EVENT_POLL_HOOK instead of WFI.
To make moduselect be usable by any port.
Diffstat (limited to 'extmod/moduselect.c')
-rw-r--r--extmod/moduselect.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/extmod/moduselect.c b/extmod/moduselect.c
index a19901e17..5b00f6bad 100644
--- a/extmod/moduselect.c
+++ b/extmod/moduselect.c
@@ -172,7 +172,7 @@ STATIC mp_obj_t select_select(uint n_args, const mp_obj_t *args) {
mp_map_deinit(&poll_map);
return mp_obj_new_tuple(3, list_array);
}
- __WFI();
+ MICROPY_EVENT_POLL_HOOK
}
}
MP_DEFINE_CONST_FUN_OBJ_VAR_BETWEEN(mp_select_select_obj, 3, 4, select_select);
@@ -264,7 +264,7 @@ STATIC mp_obj_t poll_poll(uint n_args, const mp_obj_t *args) {
}
return ret_list;
}
- __WFI();
+ MICROPY_EVENT_POLL_HOOK
}
}
MP_DEFINE_CONST_FUN_OBJ_VAR_BETWEEN(poll_poll_obj, 1, 3, poll_poll);