From b06c252a33a33ccc1e05764283aaf4020da72bf5 Mon Sep 17 00:00:00 2001 From: Alexandre Abadie Date: Fri, 25 Sep 2020 15:56:43 +0200 Subject: [PATCH] boards/stm32: add default tim2 config for stm32g4 --- boards/common/stm32/include/cfg_timer_tim2.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/boards/common/stm32/include/cfg_timer_tim2.h b/boards/common/stm32/include/cfg_timer_tim2.h index 6e54e94715..35a440371e 100644 --- a/boards/common/stm32/include/cfg_timer_tim2.h +++ b/boards/common/stm32/include/cfg_timer_tim2.h @@ -37,7 +37,8 @@ static const timer_conf_t timer_config[] = { #else .max = 0xffffffff, #endif -#if defined(CPU_FAM_STM32L4) || defined(CPU_FAM_STM32WB) +#if defined(CPU_FAM_STM32L4) || defined(CPU_FAM_STM32WB) || \ + defined(CPU_FAM_STM32G4) .rcc_mask = RCC_APB1ENR1_TIM2EN, #else .rcc_mask = RCC_APB1ENR_TIM2EN,