aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/stm32/stm32f0_serial.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/stm32/stm32f0_serial.c b/src/stm32/stm32f0_serial.c
index b7f067b6..c987f149 100644
--- a/src/stm32/stm32f0_serial.c
+++ b/src/stm32/stm32f0_serial.c
@@ -102,6 +102,13 @@
#define USART5_IRQn USART3_4_5_6_LPUART1_IRQn
#define USART6_IRQn USART3_4_5_6_LPUART1_IRQn
#endif
+ #if CONFIG_MACH_STM32G0B0
+ #define USART2_IRQn USART2_IRQn
+ #define USART3_IRQn USART3_4_5_6_IRQn
+ #define USART4_IRQn USART3_4_5_6_IRQn
+ #define USART5_IRQn USART3_4_5_6_IRQn
+ #define USART6_IRQn USART3_4_5_6_IRQn
+ #endif
#define USART_CR1_RXNEIE USART_CR1_RXNEIE_RXFNEIE
#define USART_CR1_TXEIE USART_CR1_TXEIE_TXFNFIE
#define USART_ISR_RXNE USART_ISR_RXNE_RXFNE