Skip to content

Commit

Permalink
stm32/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 1743a7d commit 67ebe08
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ports/stm32/mpmetalport.h
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,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_STM32_METAL_PORT_H

0 comments on commit 67ebe08

Please sign in to comment.