diff --git a/arch/arm/src/stm32/stm32_tim.c b/arch/arm/src/stm32/stm32_tim.c index b7015c39ce..39175a4e64 100644 --- a/arch/arm/src/stm32/stm32_tim.c +++ b/arch/arm/src/stm32/stm32_tim.c @@ -425,7 +425,7 @@ static int stm32_tim_setclock(FAR struct stm32_tim_dev_s *dev, uint32_t freq) #if defined(CONFIG_STM32_TIM16) && defined(BOARD_TIM16_FREQUENCY) case STM32_TIM16_BASE: - freqin = BOARD_TIM8_FREQUENCY; + freqin = BOARD_TIM16_FREQUENCY; break; #endif