aboutsummaryrefslogtreecommitdiffstats
path: root/src/rp2040/serial.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/rp2040/serial.c')
-rw-r--r--src/rp2040/serial.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/rp2040/serial.c b/src/rp2040/serial.c
index 351a873e..1c236977 100644
--- a/src/rp2040/serial.c
+++ b/src/rp2040/serial.c
@@ -18,44 +18,44 @@
// Dynamically select UART and IRQ based on configuration
- #if CONFIG_RP2040_SERIAL_UART0_PINS_0_1
+ #if CONFIG_RPXXXX_SERIAL_UART0_PINS_0_1
#define GPIO_Rx 1
#define GPIO_Tx 0
#define UARTx uart0_hw
#define UARTx_IRQn UART0_IRQ_IRQn
- #elif CONFIG_RP2040_SERIAL_UART0_PINS_12_13
+ #elif CONFIG_RPXXXX_SERIAL_UART0_PINS_12_13
#define GPIO_Rx 13
#define GPIO_Tx 12
#define UARTx uart0_hw
#define UARTx_IRQn UART0_IRQ_IRQn
- #elif CONFIG_RP2040_SERIAL_UART0_PINS_16_17
+ #elif CONFIG_RPXXXX_SERIAL_UART0_PINS_16_17
#define GPIO_Rx 17
#define GPIO_Tx 16
#define UARTx uart0_hw
#define UARTx_IRQn UART0_IRQ_IRQn
- #elif CONFIG_RP2040_SERIAL_UART0_PINS_28_29
+ #elif CONFIG_RPXXXX_SERIAL_UART0_PINS_28_29
#define GPIO_Rx 29
#define GPIO_Tx 28
#define UARTx uart1_hw
#define UARTx_IRQn UART1_IRQ_IRQn
#define UARTx uart0_hw
#define UARTx_IRQn UART0_IRQ_IRQn
- #elif CONFIG_RP2040_SERIAL_UART1_PINS_4_5
+ #elif CONFIG_RPXXXX_SERIAL_UART1_PINS_4_5
#define GPIO_Rx 5
#define GPIO_Tx 4
#define UARTx uart1_hw
#define UARTx_IRQn UART1_IRQ_IRQn
- #elif CONFIG_RP2040_SERIAL_UART1_PINS_8_9
+ #elif CONFIG_RPXXXX_SERIAL_UART1_PINS_8_9
#define GPIO_Rx 9
#define GPIO_Tx 8
#define UARTx uart1_hw
#define UARTx_IRQn UART1_IRQ_IRQn
- #elif CONFIG_RP2040_SERIAL_UART1_PINS_20_21
+ #elif CONFIG_RPXXXX_SERIAL_UART1_PINS_20_21
#define GPIO_Rx 20
#define GPIO_Tx 21
#define UARTx uart1_hw
#define UARTx_IRQn UART1_IRQ_IRQn
- #elif CONFIG_RP2040_SERIAL_UART1_PINS_24_25
+ #elif CONFIG_RPXXXX_SERIAL_UART1_PINS_24_25
#define GPIO_Rx 24
#define GPIO_Tx 25
#define UARTx uart1_hw