summaryrefslogtreecommitdiff
path: root/py/builtinhelp.c
diff options
context:
space:
mode:
authorrobert-hh <robert@hammelrath.com>2022-08-18 11:58:09 +0200
committerDamien George <damien@micropython.org>2022-10-25 23:11:57 +1100
commit2251cb774b7b7db12323a32b339903fa27ff7b08 (patch)
treee5d036c419f3cea3e9fb33dd502dbfbad51d86f9 /py/builtinhelp.c
parentddd41b8bbf6823ea730e781d508babbecdd41304 (diff)
samd/machine_uart: Implement uart.txdone() and uart.flush().
Using the stream method for uart.flush(). uart.txdone() returns True, if the uart not busy, False otherwise. uart.flush() waits until all bytes have been transmitted or a timeout triggers. The timeout is determined by the buffer size and the baud rate. Also fix two inconsistencies when not using txbuf: - Report in ioctl as being writeable if there is room in the tx buffer, only if it is configured. - Print the txbuf size if configured.
Diffstat (limited to 'py/builtinhelp.c')
0 files changed, 0 insertions, 0 deletions