summaryrefslogtreecommitdiff
path: root/bsp
diff options
context:
space:
mode:
authorguozhanxin <[email protected]>2022-08-08 18:27:03 +0800
committerMan, Jianting (Meco) <[email protected]>2022-08-08 10:01:15 -0400
commitccf0ad297bfd0bd8e64d92b660422ae78fc268c1 (patch)
tree05bf5411a47d132215c579805d7b7c0cf963bc30 /bsp
parent40f5e1d1eae77dbdf63b04cc21427c391b7efece (diff)
[bsp][raspberry-pi]Fix the issue of inaccurate system tick.
Diffstat (limited to 'bsp')
-rw-r--r--bsp/raspberry-pico/board/board.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/bsp/raspberry-pico/board/board.c b/bsp/raspberry-pico/board/board.c
index f95a197769..4d1b87756a 100644
--- a/bsp/raspberry-pico/board/board.c
+++ b/bsp/raspberry-pico/board/board.c
@@ -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();