summaryrefslogtreecommitdiff
path: root/cc3200
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 /cc3200
parentebc8d730f1b1a95399c5c4cdd6f010aabf7a186d (diff)
extmod/moduselect: Use configurable EVENT_POLL_HOOK instead of WFI.
To make moduselect be usable by any port.
Diffstat (limited to 'cc3200')
-rw-r--r--cc3200/mpconfigport.h1
1 files changed, 1 insertions, 0 deletions
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