提交 e865b5b7 编写于 作者: S suxiaocheng 提交者: mysterywolf

[bsp/raspberry-pico] fix sys_tick setting wrong clock source

上级 442330cc
......@@ -76,7 +76,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(clock_get_hz(clk_sys)/RT_TICK_PER_SECOND);
#ifdef RT_USING_COMPONENTS_INIT
rt_components_board_init();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册