Skip to content

Commit

Permalink
mimxrt/mpmetalport: Use mp_event_handle_nowait() for metal_poll.
Browse files Browse the repository at this point in the history
Signed-off-by: iabdalkader <i.abdalkader@gmail.com>
  • Loading branch information
iabdalkader authored and dpgeorge committed Aug 8, 2024
1 parent 67ebe08 commit 91f4a6b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ports/mimxrt/mpmetalport.h
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 91f4a6b

Please sign in to comment.