Skip to content

Commit ccf0ad2

Browse files
Guozhanxinmysterywolf
authored andcommitted
[bsp][raspberry-pi]Fix the issue of inaccurate system tick.
1 parent 40f5e1d commit ccf0ad2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bsp/raspberry-pico/board/board.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ void rt_hw_board_init()
6464
}
6565

6666
/* Configure the SysTick */
67-
systick_config(frequency_count_khz(CLOCKS_FC0_SRC_VALUE_ROSC_CLKSRC)*10000/RT_TICK_PER_SECOND);
67+
systick_config(frequency_count_khz(CLOCKS_FC0_SRC_VALUE_PLL_SYS_CLKSRC_PRIMARY) * 1000 / RT_TICK_PER_SECOND);
6868

6969
stdio_init_all();
7070
rt_hw_uart_init();

0 commit comments

Comments
 (0)