From 251758316faff1b0cc8e9c8ab4dc83adf75ce2fe Mon Sep 17 00:00:00 2001 From: Yifan Wu Date: Tue, 26 Jan 2021 15:32:51 +0800 Subject: [PATCH] Fix k210 CLOCK_FREQ --- os/src/config.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/os/src/config.rs b/os/src/config.rs index 113a350..2fea79d 100644 --- a/os/src/config.rs +++ b/os/src/config.rs @@ -15,7 +15,7 @@ pub fn kernel_stack_position(app_id: usize) -> (usize, usize) { } #[cfg(feature = "board_k210")] -pub const CLOCK_FREQ: usize = 10000000; +pub const CLOCK_FREQ: usize = 403000000 / 62; #[cfg(feature = "board_qemu")] pub const CLOCK_FREQ: usize = 12500000; \ No newline at end of file