Skip to content

Commit e865b5b

Browse files
suxiaochengmysterywolf
authored andcommitted
[bsp/raspberry-pico] fix sys_tick setting wrong clock source
1 parent 442330c commit e865b5b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: bsp/raspberry-pico/board/board.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ void rt_hw_board_init()
7676
}
7777

7878
/* Configure the SysTick */
79-
systick_config(frequency_count_khz(CLOCKS_FC0_SRC_VALUE_ROSC_CLKSRC)*10000/RT_TICK_PER_SECOND);
79+
systick_config(clock_get_hz(clk_sys)/RT_TICK_PER_SECOND);
8080

8181
#ifdef RT_USING_COMPONENTS_INIT
8282
rt_components_board_init();

0 commit comments

Comments
 (0)