mirror of
https://github.com/Noltari/pico-uart-bridge.git
synced 2024-12-26 17:26:07 +00:00
Switch UART0 to GPIO 16 (TX) & GPIO 17 (RX)
Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
This commit is contained in:
parent
01e7831501
commit
3aa5d05fe3
|
@ -13,7 +13,7 @@ Raspberry Pi Pico Pinout
|
|||
|
||||
| Raspberry Pi Pico GPIO | Function |
|
||||
|:----------------------:|:--------:|
|
||||
| GPIO0 (Pin 1) | UART0 TX |
|
||||
| GPIO1 (Pin 2) | UART0 RX |
|
||||
| GPIO16 (Pin 21) | UART0 TX |
|
||||
| GPIO17 (Pin 22) | UART0 RX |
|
||||
| GPIO4 (Pin 6) | UART1 TX |
|
||||
| GPIO5 (Pin 7) | UART1 RX |
|
||||
|
|
|
@ -52,8 +52,8 @@ const uart_id_t UART_ID[CFG_TUD_CDC] = {
|
|||
.inst = uart0,
|
||||
.irq = UART0_IRQ,
|
||||
.irq_fn = &uart0_irq_fn,
|
||||
.tx_pin = 0,
|
||||
.rx_pin = 1,
|
||||
.tx_pin = 16,
|
||||
.rx_pin = 17,
|
||||
}, {
|
||||
.inst = uart1,
|
||||
.irq = UART1_IRQ,
|
||||
|
|
Loading…
Reference in a new issue