Update drv_hwtimer.c

抱歉,这里有个失误.
This commit is contained in:
林永 2020-08-26 21:16:40 +08:00 committed by GitHub
parent 72f02203b0
commit dbd389a5a0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -314,7 +314,7 @@ static rt_err_t timer_ctrl(rt_hwtimer_t *timer, rt_uint32_t cmd, void *arg)
#endif #endif
{ {
#if !defined(SOC_SERIES_STM32F0) && !defined(SOC_SERIES_STM32G0) #if !defined(SOC_SERIES_STM32F0) && !defined(SOC_SERIES_STM32G0)
val = (uint32_t)(HAL_RCC_GetPCLK2Freq() * pclk2_doubler / 10000) - 1; val = HAL_RCC_GetPCLK2Freq() * pclk2_doubler / freq;
#endif #endif
} }
else else