aboutsummaryrefslogtreecommitdiff
path: root/stmhal
diff options
context:
space:
mode:
authorDamien George2016-12-02 16:40:39 +1100
committerDamien George2016-12-02 16:40:39 +1100
commit2d329c4a56580e17781febbfe6e42038fc3d9d03 (patch)
treeabbca65e8c2f839e23f4da00eee10b13aec3da31 /stmhal
parentebc8d730f1b1a95399c5c4cdd6f010aabf7a186d (diff)
extmod/moduselect: Use configurable EVENT_POLL_HOOK instead of WFI.
To make moduselect be usable by any port.
Diffstat (limited to 'stmhal')
-rw-r--r--stmhal/mpconfigport.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/stmhal/mpconfigport.h b/stmhal/mpconfigport.h
index ed9e26f37..81959555c 100644
--- a/stmhal/mpconfigport.h
+++ b/stmhal/mpconfigport.h
@@ -262,6 +262,7 @@ static inline mp_uint_t disable_irq(void) {
#define MICROPY_BEGIN_ATOMIC_SECTION() disable_irq()
#define MICROPY_END_ATOMIC_SECTION(state) enable_irq(state)
+#define MICROPY_EVENT_POLL_HOOK __WFI();
// There is no classical C heap in bare-metal ports, only Python
// garbage-collected heap. For completeness, emulate C heap via