Skip to content

Commit f1bfcf0

Browse files
committed
drivers: serial: Added support for PIO based UART
Added a full(ish) PIO based uart driver. Supports [5, 6, 7, 8]N[0.5, 1, 1.5, 2] modes. Experiments were made with adding parity support on the TX side, and wide (9 bit) data support. However I don't think these are really usefull ATM. Supports interrupt driven mode and polled mode. Can be used as a shell uart. Uses 2 state machines and < 16 instruction, therefore, 4 extra uarts could be added to the pico. Signed-off-by: TOKITA Hiroshi <[email protected]> Signed-off-by: Yonatan Schachter <[email protected]> Signed-off-by: Ionut Catalin Pavel <[email protected]>
1 parent 5594fdd commit f1bfcf0

File tree

5 files changed

+698
-133
lines changed

5 files changed

+698
-133
lines changed

boards/arm/rpi_pico/doc/index.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ hardware features:
8383
- :dtcompatible:`raspberrypi,pico-flash`
8484
* - UART (PIO)
8585
- :kconfig:option:`CONFIG_SERIAL`
86-
- :dtcompatible:`raspberrypi,pico-uart-pio`
86+
- :dtcompatible:`raspberrypi,pico-pio-uart`
8787

8888
Pin Mapping
8989
===========

drivers/serial/Kconfig.rpi_pico

+1-2
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,5 @@ config UART_RPI_PICO_PIO
1515
default y
1616
depends on DT_HAS_RASPBERRYPI_PICO_UART_PIO_ENABLED
1717
select SERIAL_HAS_DRIVER
18-
select PICOSDK_USE_PIO
19-
select PICOSDK_USE_CLAIM
18+
select SERIAL_SUPPORT_INTERRUPT
2019
depends on RESET

0 commit comments

Comments
 (0)