@@ -116,6 +116,9 @@ 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(USART5_BASE )
120
+ #define USART3_IRQn USART3_4_5_6_IRQn
121
+ #define USART3_IRQHandler USART3_4_5_6_IRQHandler
119
122
#else
120
123
#define USART3_IRQn USART3_4_IRQn
121
124
#define USART3_IRQHandler USART3_4_IRQHandler
@@ -140,6 +143,8 @@ struct serial_s {
140
143
#define USART4_IRQn USART3_4_5_6_LPUART1_IRQn
141
144
#elif defined(LPUART1_BASE )
142
145
#define USART4_IRQn USART3_4_LPUART1_IRQn
146
+ #elif defined(USART5_BASE )
147
+ #define USART4_IRQn USART3_4_5_6_IRQn
143
148
#else
144
149
#define USART4_IRQn USART3_4_IRQn
145
150
#endif
@@ -157,6 +162,8 @@ struct serial_s {
157
162
#elif defined(STM32G0xx )
158
163
#if defined(LPUART2_BASE )
159
164
#define USART5_IRQn USART3_4_5_6_LPUART1_IRQn
165
+ #elif defined(USART5_BASE )
166
+ #define USART5_IRQn USART3_4_5_6_IRQn
160
167
#endif
161
168
#elif defined(STM32L0xx )
162
169
#define USART5_IRQn USART4_5_IRQn
@@ -174,6 +181,8 @@ struct serial_s {
174
181
#elif defined(STM32G0xx )
175
182
#if defined(LPUART2_BASE )
176
183
#define USART6_IRQn USART3_4_5_6_LPUART1_IRQn
184
+ #elif defined(USART5_BASE )
185
+ #define USART6_IRQn USART3_4_5_6_IRQn
177
186
#endif
178
187
#endif /* STM32F0xx */
179
188
#endif
0 commit comments