diff options
Diffstat (limited to 'src/stm32/serial.c')
-rw-r--r-- | src/stm32/serial.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/stm32/serial.c b/src/stm32/serial.c index 20eda817..0e57a986 100644 --- a/src/stm32/serial.c +++ b/src/stm32/serial.c @@ -24,6 +24,12 @@ DECL_CONSTANT_STR("RESERVE_PINS_serial", "PA3,PA2"); #define GPIO_Tx GPIO('A', 2) #define USARTx USART2 #define USARTx_IRQn USART2_IRQn +#elif CONFIG_SERIAL_PORT == 102 +DECL_CONSTANT_STR("RESERVE_PINS_serial", "PA14,PA15"); +#define GPIO_Rx GPIO('A', 14) +#define GPIO_Tx GPIO('A', 15) +#define USARTx USART2b +#define USARTx_IRQn USART2_IRQn #elif CONFIG_SERIAL_PORT == 103 DECL_CONSTANT_STR("RESERVE_PINS_serial", "PD9,PD8"); #define GPIO_Rx GPIO('D', 9) |