summaryrefslogtreecommitdiffstatshomepage
path: root/examples/usercmodule/cppexample/example.cpp
diff options
context:
space:
mode:
authorDamien George <damien@micropython.org>2023-11-09 16:56:21 +1100
committerDamien George <damien@micropython.org>2023-11-09 17:56:58 +1100
commita00c9d56db775ee5fc14c2db60eb07bab8e872dd (patch)
treef720ba6ed577302f46b6f54dc11c7d73be4435ad /examples/usercmodule/cppexample/example.cpp
parentd46dc5e1738d843b83f1668798669ff177119d03 (diff)
downloadmicropython-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