From 945e4c6d81d309b070ee7246bb49ef0a6a13754c Mon Sep 17 00:00:00 2001 From: liuxuanfu Date: Thu, 23 Mar 2023 20:07:21 +0800 Subject: [PATCH] arch/arm/src/stm32/hardware: Add stm32g4 rcc apb1 timer enable compatibility --- arch/arm/src/stm32/hardware/stm32g4xxxx_rcc.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/arch/arm/src/stm32/hardware/stm32g4xxxx_rcc.h b/arch/arm/src/stm32/hardware/stm32g4xxxx_rcc.h index 4be25dde0de..69f3980161b 100644 --- a/arch/arm/src/stm32/hardware/stm32g4xxxx_rcc.h +++ b/arch/arm/src/stm32/hardware/stm32g4xxxx_rcc.h @@ -674,4 +674,9 @@ #define RCC_APB1ENR_UART4EN RCC_APB1ENR1_UART4EN #define RCC_APB1ENR_UART5EN RCC_APB1ENR1_UART5EN +#define RCC_APB1ENR_TIM2EN RCC_APB1ENR1_TIM2EN +#define RCC_APB1ENR_TIM3EN RCC_APB1ENR1_TIM3EN +#define RCC_APB1ENR_TIM4EN RCC_APB1ENR1_TIM4EN +#define RCC_APB1ENR_TIM5EN RCC_APB1ENR1_TIM5EN + #endif /* __ARCH_ARM_SRC_STM32_HARDWARE_STM32G4XXXX_RCC_H */