Skip to content

Commit 5456524

Browse files
committed
[G0] Fix U(S)ART IRQn definition with small version
Signed-off-by: Frederic Pillon <[email protected]>
1 parent 548444a commit 5456524

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Diff for: cores/arduino/stm32/uart.h

+3-3
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)