aboutsummaryrefslogtreecommitdiffstats
path: root/src/stm32/stm32f0_timer.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_timer.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_timer.c')
-rw-r--r--src/stm32/stm32f0_timer.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/stm32/stm32f0_timer.c b/src/stm32/stm32f0_timer.c
index 0d8ed3a3..f4a96396 100644
--- a/src/stm32/stm32f0_timer.c
+++ b/src/stm32/stm32f0_timer.c
@@ -28,9 +28,11 @@
#define TIMx TIM3
#define TIMx_IRQn TIM3_IRQn
#define HAVE_TIMER_32BIT 0
- #ifdef TIM4
- #define TIM3_IRQn TIM3_TIM4_IRQn
- #endif
+#endif
+
+// Some chips have slightly different register names
+#if CONFIG_MACH_STM32G0B0
+ #define TIM3_IRQn TIM3_TIM4_IRQn
#endif
static inline uint32_t