diff options
author | Damien George <damien@micropython.org> | 2023-11-09 16:56:21 +1100 |
---|---|---|
committer | Damien George <damien@micropython.org> | 2023-11-09 17:56:58 +1100 |
commit | a00c9d56db775ee5fc14c2db60eb07bab8e872dd (patch) | |
tree | f720ba6ed577302f46b6f54dc11c7d73be4435ad /examples/usercmodule/cppexample/example.cpp | |
parent | d46dc5e1738d843b83f1668798669ff177119d03 (diff) | |
download | micropython-a00c9d56db775ee5fc14c2db60eb07bab8e872dd.tar.gz micropython-a00c9d56db775ee5fc14c2db60eb07bab8e872dd.zip |
rp2/mphalport: Run TinyUSB stack while waiting for CDC input/output.
The recent change in bcbdee235719d459a4cd60d51021454fba54cd0f means that
TinyUSB can no longer be run from within a soft (or hard) IRQ handler, ie
when the scheduler is locked. That means that Python code that calls
`print(...)` from within a scheduled function may block indefinitely if the
USB CDC buffers are full.
This commit fixes that problem by explicitly running the TinyUSB stack when
waiting within stdio tx/rx functions.
Signed-off-by: Damien George <damien@micropython.org>
Diffstat (limited to 'examples/usercmodule/cppexample/example.cpp')
0 files changed, 0 insertions, 0 deletions