Skip to content

Commit

Permalink
[G0] Fix USART IRQ handler
Browse files Browse the repository at this point in the history
Fix #1188

Signed-off-by: Frederic Pillon <frederic.pillon@st.com>
  • Loading branch information
fpistm committed Sep 24, 2020
1 parent 95e58e6 commit 5f0993e
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions libraries/SrcWrapper/src/stm32/uart.c
Original file line number Diff line number Diff line change
Expand Up @@ -914,7 +914,7 @@ void USART3_IRQHandler(void)
if (uart_handlers[UART3_INDEX] != NULL) {
HAL_UART_IRQHandler(uart_handlers[UART3_INDEX]);
}
#if defined(STM32F0xx)
#if defined(STM32F0xx) || defined(STM32G0xx)
/* USART3_4_IRQn */
if (uart_handlers[UART4_INDEX] != NULL) {
HAL_UART_IRQHandler(uart_handlers[UART4_INDEX]);
Expand All @@ -927,7 +927,12 @@ void USART3_IRQHandler(void)
HAL_UART_IRQHandler(uart_handlers[UART6_INDEX]);
}
#endif /* STM32F030xC */
#endif /* STM32F0xx */
#if defined(STM32G0xx) && defined(LPUART1_BASE)
if (uart_handlers[LPUART1_INDEX] != NULL) {
HAL_UART_IRQHandler(uart_handlers[LPUART1_INDEX]);
}
#endif /* STM32G0xx && LPUART1_BASE */
#endif /* STM32F0xx || STM32G0xx */
#endif /* STM32F091xC || STM32F098xx */
}
#endif
Expand Down

0 comments on commit 5f0993e

Please sign in to comment.