From 2d329c4a56580e17781febbfe6e42038fc3d9d03 Mon Sep 17 00:00:00 2001 From: Damien George Date: Fri, 2 Dec 2016 16:40:39 +1100 Subject: extmod/moduselect: Use configurable EVENT_POLL_HOOK instead of WFI. To make moduselect be usable by any port. --- extmod/moduselect.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'extmod/moduselect.c') diff --git a/extmod/moduselect.c b/extmod/moduselect.c index a19901e171..5b00f6badd 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); -- cgit v1.2.3