diff options
author | robert-hh <robert@hammelrath.com> | 2022-09-12 13:59:38 +0200 |
---|---|---|
committer | Damien George <damien@micropython.org> | 2023-03-20 16:08:35 +1100 |
commit | 7ea192af05c2c0fb0d2992a13f6f58e763d81673 (patch) | |
tree | 3edac019e60e45f485db23b4910f169178820054 /py/pystack.c | |
parent | 42511b5291f32fdcb074eb5984abc52952e5a9ab (diff) | |
download | micropython-7ea192af05c2c0fb0d2992a13f6f58e763d81673.tar.gz micropython-7ea192af05c2c0fb0d2992a13f6f58e763d81673.zip |
nrf/modules/machine/uart: Add timeout keyword options and "any" method.
Changes in this commit:
- Add the timeout and timeout_char keyword options.
- Make uart.read() non-blocking.
- Add uart.any().
- Add ioctl MP_STREAM_POLL handling.
- Change uart.write() into non-busy waiting. uart.write() still waits until
all data has been sent, but calls MICROPY_EVENT_POLL_HOOK while waiting.
uart.write() uses DMA for transfer. One option would be to add a small
local buffer, such that transfers up to the size of the buffer could be
done without waiting.
- As a side effect to the change of uart.write(), uart.txdone() and ioctl
flush now report/wait correctly for the end of transmission.
- Change machine_hard_uart_buf_t in machine_hard_uart_obj_t to an instance
of that struct, rather than a pointer to one.
Diffstat (limited to 'py/pystack.c')
0 files changed, 0 insertions, 0 deletions