summaryrefslogtreecommitdiffstatshomepage
path: root/docs/esp32
diff options
context:
space:
mode:
authorrobert-hh <robert@hammelrath.com>2024-09-02 16:24:46 +0200
committerDamien George <damien@micropython.org>2024-11-18 23:05:46 +1100
commit5a70850b30e457ee9c6ab12fa735246bc3a1f8aa (patch)
tree851933ddef09b348dab53500fbb2441ddca158ba /docs/esp32
parente2532e0f725107becea3cf7e6d14727ab3abec7c (diff)
downloadmicropython-5a70850b30e457ee9c6ab12fa735246bc3a1f8aa.tar.gz
micropython-5a70850b30e457ee9c6ab12fa735246bc3a1f8aa.zip
samd/machine_uart: Add full support for 9-bit data.
Prior to this commit, 9-bit UART data could be specified in the constructor and was transmitted, but the 9th bit was set to 0 when sending, and ignored when receiving. This commit completes 9-bit support in that the 9th bit is taken from the data. 9-bit data has to be provided with `uart.write()` and and read with `uart.read()` as two bytes for each transmitted item, low order byte first. The data length supplied with `uart.write()` and requested by `uart.read()` has to be even, which is checked. The size of the UART buffers will be transparently doubled to cater for 9-bit data. Signed-off-by: robert-hh <robert@hammelrath.com>
Diffstat (limited to 'docs/esp32')
0 files changed, 0 insertions, 0 deletions