소스 검색

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

guozhanxin 2 년 전
부모
커밋
ccf0ad297b
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      bsp/raspberry-pico/board/board.c

+ 1 - 1
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();