Skip to content

Commit 5f0993e

Browse files
committed
[G0] Fix USART IRQ handler
Fix #1188 Signed-off-by: Frederic Pillon <[email protected]>
1 parent 95e58e6 commit 5f0993e

File tree

1 file changed

+7
-2
lines changed
  • libraries/SrcWrapper/src/stm32

1 file changed

+7
-2
lines changed

libraries/SrcWrapper/src/stm32/uart.c

+7-2
Original file line numberDiff line numberDiff line change
@@ -914,7 +914,7 @@ void USART3_IRQHandler(void)
914914
if (uart_handlers[UART3_INDEX] != NULL) {
915915
HAL_UART_IRQHandler(uart_handlers[UART3_INDEX]);
916916
}
917-
#if defined(STM32F0xx)
917+
#if defined(STM32F0xx) || defined(STM32G0xx)
918918
/* USART3_4_IRQn */
919919
if (uart_handlers[UART4_INDEX] != NULL) {
920920
HAL_UART_IRQHandler(uart_handlers[UART4_INDEX]);
@@ -927,7 +927,12 @@ void USART3_IRQHandler(void)
927927
HAL_UART_IRQHandler(uart_handlers[UART6_INDEX]);
928928
}
929929
#endif /* STM32F030xC */
930-
#endif /* STM32F0xx */
930+
#if defined(STM32G0xx) && defined(LPUART1_BASE)
931+
if (uart_handlers[LPUART1_INDEX] != NULL) {
932+
HAL_UART_IRQHandler(uart_handlers[LPUART1_INDEX]);
933+
}
934+
#endif /* STM32G0xx && LPUART1_BASE */
935+
#endif /* STM32F0xx || STM32G0xx */
931936
#endif /* STM32F091xC || STM32F098xx */
932937
}
933938
#endif

0 commit comments

Comments
 (0)