diff options
Diffstat (limited to 'src/stm32/stm32f0_timer.c')
-rw-r--r-- | src/stm32/stm32f0_timer.c | 8 |
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 |