summaryrefslogtreecommitdiffstatshomepage
path: root/py/pystack.c
diff options
context:
space:
mode:
authorrobert-hh <robert@hammelrath.com>2022-09-12 13:59:38 +0200
committerDamien George <damien@micropython.org>2023-03-20 16:08:35 +1100
commit7ea192af05c2c0fb0d2992a13f6f58e763d81673 (patch)
tree3edac019e60e45f485db23b4910f169178820054 /py/pystack.c
parent42511b5291f32fdcb074eb5984abc52952e5a9ab (diff)
downloadmicropython-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