stm32/mpmetalport: Use mp_event_handle_nowait() for metal_poll.
Signed-off-by: iabdalkader <i.abdalkader@gmail.com>
This commit is contained in:
parent
1743a7d721
commit
67ebe086a8
@ -70,7 +70,8 @@ static inline int __metal_sleep_usec(unsigned int usec) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
static inline void metal_generic_default_poll(void) {
|
static inline void metal_generic_default_poll(void) {
|
||||||
MICROPY_EVENT_POLL_HOOK
|
mp_event_handle_nowait();
|
||||||
|
__WFI();
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif // MICROPY_INCLUDED_STM32_METAL_PORT_H
|
#endif // MICROPY_INCLUDED_STM32_METAL_PORT_H
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user