8000 chore(c0): support usart3_irqn and usart4_irqn · stm32duino/Arduino_Core_STM32@e0147d5 · GitHub
[go: up one dir, main page]

Skip to content

Commit e0147d5

Browse files
showengineerfpistm
authored andcommitted
chore(c0): support usart3_irqn and usart4_irqn
Signed-off-by: Hugo <10338882+showengineer@users.noreply.github.com>
1 parent c577008 commit e0147d5

File tree

1 file changed

+2
-2
lines changed
  • libraries/SrcWrapper/inc

1 file changed

+2
-2
lines changed

libraries/SrcWrapper/inc/uart.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ struct serial_s {
121121
#define USART3_IRQn USART3_4_IRQn
122122
#define USART3_IRQHandler USART3_4_IRQHandler
123123
#endif /* STM32F091xC || STM32F098xx */
124-
#elif defined(STM32G0xx)
124+
#elif defined(STM32G0xx) || defined(STM32C0xx)
125125
#if defined(LPUART2_BASE)
126126
#define USART3_IRQn USART3_4_5_6_LPUART1_IRQn
127127
#define USART3_IRQHandler USART3_4_5_6_LPUART1_IRQHandler
@@ -153,7 +153,7 @@ struct serial_s {
153153
#endif /* STM32F091xC || STM32F098xx */
154154
#elif defined(STM32L0xx)
155155
#define USART4_IRQn USART4_5_IRQn
156-
#elif defined(STM32G0xx)
156+
#elif defined(STM32G0xx) || defined(STM32C0xx)
157157
#if defined(LPUART2_BASE)
158158
#define USART4_IRQn USART3_4_5_6_LPUART1_IRQn
159159
#elif defined(LPUART1_BASE)

0 commit comments

Comments
 (0)
0