diff options
author | Damien George <damien@micropython.org> | 2025-04-22 11:51:35 +1000 |
---|---|---|
committer | Damien George <damien@micropython.org> | 2025-05-21 13:10:01 +1000 |
commit | 32c65ad4552d7e7d88c06e94fd903dcea5080c5f (patch) | |
tree | d844969767f7267a62cdb89ec284e5b64133928f /lib/mbedtls_errors/esp32_mbedtls_errors.c | |
parent | d5db8f04613b6a7e6f3d55dd8d618e8ccdaecdfa (diff) | |
download | micropython-32c65ad4552d7e7d88c06e94fd903dcea5080c5f.tar.gz micropython-32c65ad4552d7e7d88c06e94fd903dcea5080c5f.zip |
nrf: Only process interrupt chars on UARTs used for REPL.
This commit adds an `attached_to_repl` property to each UART, and makes
sure that property is correctly set/unset when the UART is attached to or
detached from the REPL.
That property is then used to make sure incoming characters on the UART are
only checked for the interrupt character if the UART is attached to the
REPL. Otherwise a board without REPL on UART can have its code interrupted
if ctrl-C is received on the UART.
Also, put incoming UART characters on to `stdin_ringbuf` instead of the
UARTs ring buffer (the former is much larger than the latter).
Signed-off-by: Damien George <damien@micropython.org>
Diffstat (limited to 'lib/mbedtls_errors/esp32_mbedtls_errors.c')
0 files changed, 0 insertions, 0 deletions