diff options
author | Angus Gratton <angus@redyak.com.au> | 2025-09-10 09:35:36 +1000 |
---|---|---|
committer | Damien George <damien@micropython.org> | 2025-09-11 13:27:12 +1000 |
commit | 69408453a2070fabc8ad5d0dba7451592ec169cf (patch) | |
tree | 9cd9f7b6a765d39d2e70eca34350356897561188 /py/objcode.c | |
parent | 7512ad66222f0c031d4eaf5abf605ab403440e83 (diff) |
shared/tinyusb/mp_usbd_cdc: Rewrite USB CDC TX loop.
This is related to the previous commit (where due to the new config flag
this loop could end up stuck indefinitely if the USB host was
disconnected). The previous loop could maybe still get stuck if the
low-level USB state and the high-level USB state got out of sync. (Not
clearly possible, but hard to say definitely not possible.)
To be "belts and braces" careful:
- Always run mp_usbd_task() each time around the loop to progress the
state.
- Always evaluate the timeout if we fail to write anything to the FIFO.
This work was funded through GitHub Sponsors.
Signed-off-by: Angus Gratton <angus@redyak.com.au>
Diffstat (limited to 'py/objcode.c')
0 files changed, 0 insertions, 0 deletions