@@ -121,7 +121,7 @@ struct serial_s {
121
121
#define USART3_IRQn USART3_4_IRQn
122
122
#define USART3_IRQHandler USART3_4_IRQHandler
123
123
#endif /* STM32F091xC || STM32F098xx */
124
- #elif defined(STM32G0xx )
124
+ #elif defined(STM32G0xx ) || defined( STM32C0xx )
125
125
#if defined(LPUART2_BASE )
126
126
#define USART3_IRQn USART3_4_5_6_LPUART1_IRQn
127
127
#define USART3_IRQHandler USART3_4_5_6_LPUART1_IRQHandler
@@ -138,9 +138,6 @@ struct serial_s {
138
138
#elif defined(STM32U0xx )
139
139
#define USART3_IRQn USART3_LPUART1_IRQn
140
140
#define USART3_IRQHandler USART3_LPUART1_IRQHandler
141
- #elif defined(STM32C0xx )
142
- #define USART3_IRQn USART3_4_IRQn
143
- #define USART3_IRQHandler USART3_4_IRQHandler
144
141
#endif /* STM32F0xx */
145
142
#endif
146
143
@@ -156,7 +153,7 @@ struct serial_s {
156
153
#endif /* STM32F091xC || STM32F098xx */
157
154
#elif defined(STM32L0xx )
158
155
#define USART4_IRQn USART4_5_IRQn
159
- #elif defined(STM32G0xx )
156
+ #elif defined(STM32G0xx ) || defined( STM32C0xx )
160
157
#if defined(LPUART2_BASE )
161
158
#define USART4_IRQn USART3_4_5_6_LPUART1_IRQn
162
159
#elif defined(LPUART1_BASE )
@@ -171,9 +168,6 @@ struct serial_s {
171
168
#define USART4_IRQn USART4_LPUART3_IRQn
172
169
#define USART4_IRQHandler USART4_LPUART3_IRQHandler
173
170
#endif /* LPUART3_BASE */
174
- #elif defined(STM32C0xx )
175
- #define USART4_IRQn USART3_4_IRQn
176
- #define USART4_IRQHandler USART3_4_IRQHandler
177
171
#endif /* STM32G0xx */
178
172
#endif
179
173
0 commit comments