diff options
author | Damien George <damien@micropython.org> | 2021-02-12 13:32:27 +1100 |
---|---|---|
committer | Damien George <damien@micropython.org> | 2021-02-12 13:48:51 +1100 |
commit | f31c6b484060eb3554aa13bb758cc9a5974cafbb (patch) | |
tree | 04509c6051b6e836f1d4795938ee111937c62b41 /extmod/uasyncio/core.py | |
parent | c9260dda23bfdaea042d3bb94e1a830af0dbfa18 (diff) | |
download | micropython-f31c6b484060eb3554aa13bb758cc9a5974cafbb.tar.gz micropython-f31c6b484060eb3554aa13bb758cc9a5974cafbb.zip |
mimxrt: Fix USB CDC handling so it works reliably.
On i.MX the SysTick IRQ cannot wake the CPU from a WFI so the CPU was
blocked on WFI waiting for USB data in mp_hal_stdin_rx_chr() even though it
had already arrived (because it may arrive just after calling the check
tud_cdc_available()). This commit fixes this problem by using SEV/WFE to
indicate that there has been a USB event.
The mp_hal_stdout_tx_strn() function is also fixed so that it doesn't
overflow the USB buffers.
Signed-off-by: Damien George <damien@micropython.org>
Diffstat (limited to 'extmod/uasyncio/core.py')
0 files changed, 0 insertions, 0 deletions