summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoriabdalkader <i.abdalkader@gmail.com>2024-08-01 17:06:19 +0300
committerDamien George <damien@micropython.org>2024-08-08 18:02:21 +1000
commit91f4a6b9e902c066c98bda3799e01c8c6c0783ea (patch)
tree585185b8e0e386f248e7d475f7ec7df72188cd67
parent67ebe086a8948b083d84da1bf83ec82e1a9f1b85 (diff)
mimxrt/mpmetalport: Use mp_event_handle_nowait() for metal_poll.
Signed-off-by: iabdalkader <i.abdalkader@gmail.com>
-rw-r--r--ports/mimxrt/mpmetalport.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/ports/mimxrt/mpmetalport.h b/ports/mimxrt/mpmetalport.h
index 994d57cc3..d197bbc02 100644
--- a/ports/mimxrt/mpmetalport.h
+++ b/ports/mimxrt/mpmetalport.h
@@ -67,7 +67,8 @@ static inline int __metal_sleep_usec(unsigned int usec) {
}
static inline void metal_generic_default_poll(void) {
- MICROPY_EVENT_POLL_HOOK
+ mp_event_handle_nowait();
+ __WFI();
}
#endif // MICROPY_INCLUDED_MIMXRT_METAL_PORT_H