diff options
author | Alex Voinea <voinea.dragos.alexandru@gmail.com> | 2022-12-12 22:14:09 +0100 |
---|---|---|
committer | KevinOConnor <kevin@koconnor.net> | 2022-12-15 10:05:43 -0500 |
commit | e33b41abaabe7d2be2207c79d5ed59cb8ce7babc (patch) | |
tree | 60316450af67509040b3dc544aa0c35728e14e6e /src/stm32/stm32f0_serial.c | |
parent | 9d668d63a7183a62b9f78ef7e40f1a2089a43097 (diff) | |
download | kutter-e33b41abaabe7d2be2207c79d5ed59cb8ce7babc.tar.gz kutter-e33b41abaabe7d2be2207c79d5ed59cb8ce7babc.tar.xz kutter-e33b41abaabe7d2be2207c79d5ed59cb8ce7babc.zip |
stm32g0: add stm32g0b0 support
Signed-off-by: Alex Voinea <voinea.dragos.alexandru@gmail.com>
Diffstat (limited to 'src/stm32/stm32f0_serial.c')
-rw-r--r-- | src/stm32/stm32f0_serial.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/stm32/stm32f0_serial.c b/src/stm32/stm32f0_serial.c index bb4ec69a..4e0f39fe 100644 --- a/src/stm32/stm32f0_serial.c +++ b/src/stm32/stm32f0_serial.c @@ -87,8 +87,10 @@ #endif #if CONFIG_MACH_STM32G0 - // The stm32g0 has slightly different register names - #define USART2_IRQn USART2_LPUART2_IRQn + // Some of the stm32g0 MCUs have slightly different register names + #ifdef LPUART2 + #define USART2_IRQn USART2_LPUART2_IRQn + #endif #define USART_CR1_RXNEIE USART_CR1_RXNEIE_RXFNEIE #define USART_CR1_TXEIE USART_CR1_TXEIE_TXFNFIE #define USART_ISR_RXNE USART_ISR_RXNE_RXFNE |