diff options
Diffstat (limited to 'src/stm32/serial.c')
-rw-r--r-- | src/stm32/serial.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/stm32/serial.c b/src/stm32/serial.c index 0142aaa6..0cac8a1b 100644 --- a/src/stm32/serial.c +++ b/src/stm32/serial.c @@ -25,6 +25,13 @@ DECL_CONSTANT_STR("RESERVE_PINS_serial", "PA3,PA2"); #define USARTx USART2 #define USARTx_IRQn USART2_IRQn #define USARTx_IRQHandler USART2_IRQHandler +#elif CONFIG_SERIAL_PORT == 103 +DECL_CONSTANT_STR("RESERVE_PINS_serial", "PD9,PD8"); +#define GPIO_Rx GPIO('D', 9) +#define GPIO_Tx GPIO('D', 8) +#define USARTx USART3 +#define USARTx_IRQn USART3_IRQn +#define USARTx_IRQHandler USART3_IRQHandler #else DECL_CONSTANT_STR("RESERVE_PINS_serial", "PB11,PB10"); #define GPIO_Rx GPIO('B', 11) |