提交 ccf0ad29 编写于 作者: G guozhanxin 提交者: mysterywolf

[bsp][raspberry-pi]Fix the issue of inaccurate system tick.

上级 40f5e1d1
......@@ -64,7 +64,7 @@ void rt_hw_board_init()
}
/* Configure the SysTick */
systick_config(frequency_count_khz(CLOCKS_FC0_SRC_VALUE_ROSC_CLKSRC)*10000/RT_TICK_PER_SECOND);
systick_config(frequency_count_khz(CLOCKS_FC0_SRC_VALUE_PLL_SYS_CLKSRC_PRIMARY) * 1000 / RT_TICK_PER_SECOND);
stdio_init_all();
rt_hw_uart_init();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册