From 3848a37d147561b820793ad0db0529dcc8354bce Mon Sep 17 00:00:00 2001 From: Marian Buschsieweke Date: Tue, 21 Nov 2023 09:01:56 +0100 Subject: [PATCH] boards/nucleo-f303re: add more timers --- boards/common/stm32/include/cfg_timer_tim2_tim15_tim16.h | 4 ++++ boards/nucleo-f303re/include/periph_conf.h | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/boards/common/stm32/include/cfg_timer_tim2_tim15_tim16.h b/boards/common/stm32/include/cfg_timer_tim2_tim15_tim16.h index 2f2ad1e4e8..56d08e1c9b 100644 --- a/boards/common/stm32/include/cfg_timer_tim2_tim15_tim16.h +++ b/boards/common/stm32/include/cfg_timer_tim2_tim15_tim16.h @@ -36,7 +36,11 @@ static const timer_conf_t timer_config[] = { { .dev = TIM2, .max = 0xffffffff, +#if defined(RCC_APB1ENR_TIM2EN) + .rcc_mask = RCC_APB1ENR_TIM2EN, +#else .rcc_mask = RCC_APB1ENR1_TIM2EN, +#endif .bus = APB1, .irqn = TIM2_IRQn }, diff --git a/boards/nucleo-f303re/include/periph_conf.h b/boards/nucleo-f303re/include/periph_conf.h index d04f6b8542..53d00b210e 100644 --- a/boards/nucleo-f303re/include/periph_conf.h +++ b/boards/nucleo-f303re/include/periph_conf.h @@ -33,7 +33,7 @@ #include "periph_cpu.h" #include "clk_conf.h" -#include "cfg_timer_tim2.h" +#include "cfg_timer_tim2_tim15_tim16.h" #ifdef __cplusplus extern "C" {