@@ -116,7 +116,7 @@ struct serial_s {
116
116
#elif defined(LPUART1_BASE )
117
117
#define USART3_IRQn USART3_4_LPUART1_IRQn
118
118
#define USART3_IRQHandler USART3_4_LPUART1_IRQHandler
119
- #elif defined(STM32G0B0xx )
119
+ #elif defined(USART5_BASE )
120
120
#define USART3_IRQn USART3_4_5_6_IRQn
121
121
#define USART3_IRQHandler USART3_4_5_6_IRQHandler
122
122
#else
@@ -143,9 +143,8 @@ struct serial_s {
143
143
#define USART4_IRQn USART3_4_5_6_LPUART1_IRQn
144
144
#elif defined(LPUART1_BASE )
145
145
#define USART4_IRQn USART3_4_LPUART1_IRQn
146
- #elif defined(STM32G0B0xx )
146
+ #elif defined(USART5_BASE )
147
147
#define USART4_IRQn USART3_4_5_6_IRQn
148
- #define USART4_IRQHandler USART3_4_5_6_IRQHandler
149
148
#else
150
149
#define USART4_IRQn USART3_4_IRQn
151
150
#endif
@@ -163,9 +162,8 @@ struct serial_s {
163
162
#elif defined(STM32G0xx )
164
163
#if defined(LPUART2_BASE )
165
164
#define USART5_IRQn USART3_4_5_6_LPUART1_IRQn
166
- #elif defined(STM32G0B0xx )
165
+ #elif defined(USART5_BASE )
167
166
#define USART5_IRQn USART3_4_5_6_IRQn
168
- #define USART5_IRQHandler USART3_4_5_6_IRQHandler
169
167
#endif
170
168
#elif defined(STM32L0xx )
171
169
#define USART5_IRQn USART4_5_IRQn
@@ -183,9 +181,8 @@ struct serial_s {
183
181
#elif defined(STM32G0xx )
184
182
#if defined(LPUART2_BASE )
185
183
#define USART6_IRQn USART3_4_5_6_LPUART1_IRQn
186
- #elif defined(STM32G0B0xx )
184
+ #elif defined(USART5_BASE )
187
185
#define USART6_IRQn USART3_4_5_6_IRQn
188
- #define USART6_IRQHandler USART3_4_5_6_IRQHandler
189
186
#endif
190
187
#endif /* STM32F0xx */
191
188
#endif
0 commit comments