aboutsummaryrefslogtreecommitdiff
path: root/ports/rp2/machine_uart.c
AgeCommit message (Collapse)Author
2021-04-12rp2/machine_uart: Add buffered transfer of data with rxbuf/txbuf kwargs.robert-hh
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.
2021-03-11rp2/machine_uart: Add support for inverted TX and RX lines.robert-hh
Usage as in the other ports: keyword "invert" constants: INV_TX and INV_RX Sample: uart = UART(1, invert=UART.INV_TX | UART.INV_RX)
2021-03-11rp2/machine_uart: Add timeout/timeout_char to read and write.robert-hh
2021-01-30rp2: Add new port to Raspberry Pi RP2 microcontroller.Damien George
This commit adds a new port "rp2" which targets the new Raspberry Pi RP2040 microcontroller. The build system uses pure cmake (with a small Makefile wrapper for convenience). The USB driver is TinyUSB, and there is a machine module with most of the standard classes implemented. Some examples are provided in the examples/rp2/ directory. Work done in collaboration with Graham Sanderson. Signed-off-by: Damien George <damien@micropython.org>