未验证 提交 dbd389a5 编写于 作者: 林永 提交者: GitHub

Update drv_hwtimer.c

抱歉,这里有个失误.
上级 72f02203
......@@ -314,7 +314,7 @@ static rt_err_t timer_ctrl(rt_hwtimer_t *timer, rt_uint32_t cmd, void *arg)
#endif
{
#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
}
else
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册