diff options
| author | Damien George <damien@micropython.org> | 2025-06-23 12:56:35 +1000 |
|---|---|---|
| committer | Damien George <damien@micropython.org> | 2025-07-08 10:10:16 +1000 |
| commit | 6a53319336ce234757e04223cfe8560d6bea2de6 (patch) | |
| tree | add20b9a9b38c4365ce6e529c3a64dc55f4a1532 /py/objproperty.c | |
| parent | 4951a06bbb5b3987a8ac922c06b8764c083d168c (diff) | |
zephyr/src: Increase UART input buffer to 512 bytes and reduce latency.
There are two changes here:
1. Increase the UART input bufffer to 512 bytes. That's necessary to get
basic REPL reliability tests working, and helps improve `mpremote`
usage, eg copying large files.
2. Remove `uart_sem` semaphore. This is no longer needed because
`zephyr_getchar()` should be fully non-blocking and have as low a
latency as possible. `mp_hal_stdin_rx_chr()` (which calls
`zephyr_getchar`) already uses `MICROPY_EVENT_POLL_HOOK` to get
an efficient wait, and doing an extra wait and check for the
semaphore in `zephyr_getchar()` just introduces unnecessary latency and
can lead to slower input, and potentially overflowing the UART input
buffer.
Signed-off-by: Damien George <damien@micropython.org>
Diffstat (limited to 'py/objproperty.c')
0 files changed, 0 insertions, 0 deletions
