Switch UART0 to GPIO 16 (TX) & GPIO 17 (RX)

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
This commit is contained in:
Álvaro Fernández Rojas 2022-11-04 11:08:49 +01:00
parent 01e7831501
commit 3aa5d05fe3
2 changed files with 4 additions and 4 deletions

View file

@ -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 |

View file

@ -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,