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 committed Aug 13, 2024
1 parent 0918674 commit a771e1f
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 a771e1f

Please sign in to comment.