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. --- cc3200/mpconfigport.h | 1 + 1 file changed, 1 insertion(+) (limited to 'cc3200') diff --git a/cc3200/mpconfigport.h b/cc3200/mpconfigport.h index 7a8aa15d5..5b6a035d5 100644 --- a/cc3200/mpconfigport.h +++ b/cc3200/mpconfigport.h @@ -194,6 +194,7 @@ typedef long mp_off_t; #define MICROPY_BEGIN_ATOMIC_SECTION() disable_irq() #define MICROPY_END_ATOMIC_SECTION(state) enable_irq(state) +#define MICROPY_EVENT_POLL_HOOK __WFI(); // assembly functions to handle critical sections, interrupt // disabling/enabling and sleep mode enter/exit -- cgit v1.2.3