rp2040: Rename CONFIG_RP2040_yyy Kconfig symbols to CONFIG_RPXXXX_yyy
Rename the Kconfig symbols. This is in preparation to adding support for the rp2350 mcu. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user