diff options
author | robert-hh <robert@hammelrath.com> | 2021-03-11 08:36:16 +0100 |
---|---|---|
committer | Damien George <damien@micropython.org> | 2021-04-12 21:31:08 +1000 |
commit | 1be74b94b6f3263b8e360a0a012ae87301539f91 (patch) | |
tree | 5f918dbea30ad4bfb4ecb83d4114762c6bbd2c06 /py/runtime.c | |
parent | 22554cf8e21ab97c60137539536eab05d6a6cdcb (diff) |
rp2/machine_uart: Add buffered transfer of data with rxbuf/txbuf kwargs.
Instantiation and init now support the rxbuf and txbuf keywords for setting
the buffer size. The default size is 256 bytes. The minimum and maximum
sizes are 32 and 32766 respectively.
uart.write() still includes checks for timeout, even if it is very unlikely
to happen due to a) lack of flow control support and b) the minimal timeout
values being longer than the time it needs to send a byte.
Diffstat (limited to 'py/runtime.c')
0 files changed, 0 insertions, 0 deletions