mimxrt/mpmetalport: Use mp_event_handle_nowait() for metal_poll.
Signed-off-by: iabdalkader <i.abdalkader@gmail.com>
This commit is contained in:
parent
67ebe086a8
commit
91f4a6b9e9
@ -67,7 +67,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_MIMXRT_METAL_PORT_H
|
#endif // MICROPY_INCLUDED_MIMXRT_METAL_PORT_H
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user