Skip to content

Commit a37c108

Browse files
committed
Map usartirq_3_4 to usart3_irqn and usart4_irqn
1 parent 96be3f8 commit a37c108

File tree

1 file changed

+6
-0
lines changed
  • libraries/SrcWrapper/inc

1 file changed

+6
-0
lines changed

libraries/SrcWrapper/inc/uart.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,9 @@ struct serial_s {
138138
#elif defined(STM32U0xx)
139139
#define USART3_IRQn USART3_LPUART1_IRQn
140140
#define USART3_IRQHandler USART3_LPUART1_IRQHandler
141+
#elif defined(STM32C0xx)
142+
#define USART3_IRQn USART3_4_IRQn
143+
#define USART3_IRQHandler USART3_4_IRQHandler
141144
#endif /* STM32F0xx */
142145
#endif
143146

@@ -168,6 +171,9 @@ struct serial_s {
168171
#define USART4_IRQn USART4_LPUART3_IRQn
169172
#define USART4_IRQHandler USART4_LPUART3_IRQHandler
170173
#endif /* LPUART3_BASE */
174+
#elif defined(STM32C0xx)
175+
#define USART4_IRQn USART3_4_IRQn
176+
#define USART4_IRQHandler USART3_4_IRQHandler
171177
#endif /* STM32G0xx */
172178
#endif
173179

0 commit comments

Comments
 (0)