summaryrefslogtreecommitdiffstatshomepage
path: root/examples/usercmodule/cppexample/examplemodule.h
diff options
context:
space:
mode:
authorYoungJoon Chun <yjchun@mac.com>2022-02-03 22:41:45 +0900
committerDamien George <damien@micropython.org>2022-02-09 16:29:53 +1100
commitd8a7bf83ccf28d0e8acf9790a1fc38aa5d13a2e5 (patch)
treec63cd2283bd7f020d903b83b996415992725f400 /examples/usercmodule/cppexample/examplemodule.h
parent8f6924c9fb061742039554a3b5840f6e92aff7f2 (diff)
downloadmicropython-d8a7bf83ccf28d0e8acf9790a1fc38aa5d13a2e5.tar.gz
micropython-d8a7bf83ccf28d0e8acf9790a1fc38aa5d13a2e5.zip
rp2/machine_uart: Fix UART RTS behaviour so RTS is deasserted.
The UART hardware flow control was not working correctly, the receive FIFO was always fetched and RTS was never deasserted. This is not a problem when hardware flow control is not used: normally, if the receive FIFO is full, the UART receiver won't receive data into the FIFO anymore, but the current implementation fetches from the FIFO and discards it instead. The problem is that data is discarded even when RTS is enabled. This commit fixes the issue by only taking from the FIFO if there is room in the ring buffer to put the character. Signed-off-by: YoungJoon Chun <yjchun@mac.com>
Diffstat (limited to 'examples/usercmodule/cppexample/examplemodule.h')
0 files changed, 0 insertions, 0 deletions