File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -99,7 +99,7 @@ struct serial_s {
9999#endif /* STM32F091xC || STM32F098xx */
100100#endif /* STM32F0xx */
101101
102- #if defined(STM32G0xx )
102+ #if defined(STM32G0xx ) && !defined( STM32G030xx ) && !defined( STM32G031xx ) && !defined( STM32G041xx )
103103#define USART3_IRQn USART3_4_LPUART1_IRQn
104104#define USART3_IRQHandler USART3_4_LPUART1_IRQHandler
105105#endif /* STM32G0xx */
@@ -118,7 +118,7 @@ struct serial_s {
118118#elif defined(STM32L0xx )
119119#define USART4_IRQn USART4_5_IRQn
120120#endif /* STM32F0xx */
121- #if defined(STM32G0xx )
121+ #if defined(STM32G0xx ) && !defined( STM32G030xx ) && !defined( STM32G031xx ) && !defined( STM32G041xx )
122122#define USART4_IRQn USART3_4_LPUART1_IRQn
123123#endif /* STM32G0xx */
124124
@@ -160,7 +160,7 @@ struct serial_s {
160160#endif
161161#endif /* STM32F0xx */
162162
163- #if defined(STM32G0xx )
163+ #if defined(STM32G0xx ) && !defined( STM32G030xx ) && !defined( STM32G031xx ) && !defined( STM32G041xx )
164164#if defined(LPUART1_BASE ) && !defined(LPUART1_IRQn )
165165#define LPUART1_IRQn USART3_4_LPUART1_IRQn
166166#endif
You can’t perform that action at this time.
0 commit comments