From e5dd61c2c248ee3d03b5818b82d1b8f1bfe13b3b 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 113a3509..2fea79d3 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