aboutsummaryrefslogtreecommitdiffstats
path: root/src/stm32/stm32f0_serial.c
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2022-12-15 10:23:37 -0500
committerKevin O'Connor <kevin@koconnor.net>2022-12-15 10:27:51 -0500
commitf31540b3571c211739cfad4c207309e222f25842 (patch)
tree3e677da08c185fb4da983d60de7ed8423cb34f7e /src/stm32/stm32f0_serial.c
parente33b41abaabe7d2be2207c79d5ed59cb8ce7babc (diff)
downloadkutter-f31540b3571c211739cfad4c207309e222f25842.tar.gz
kutter-f31540b3571c211739cfad4c207309e222f25842.tar.xz
kutter-f31540b3571c211739cfad4c207309e222f25842.zip
stm32: Minor changes to stm32g0b0 ifdefs
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'src/stm32/stm32f0_serial.c')
-rw-r--r--src/stm32/stm32f0_serial.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/stm32/stm32f0_serial.c b/src/stm32/stm32f0_serial.c
index 4e0f39fe..4f6495f7 100644
--- a/src/stm32/stm32f0_serial.c
+++ b/src/stm32/stm32f0_serial.c
@@ -88,7 +88,7 @@
#if CONFIG_MACH_STM32G0
// Some of the stm32g0 MCUs have slightly different register names
- #ifdef LPUART2
+ #if CONFIG_MACH_STM32G0B1
#define USART2_IRQn USART2_LPUART2_IRQn
#endif
#define USART_CR1_RXNEIE USART_CR1_RXNEIE_RXFNEIE