Update sys_time unit to ms && Update clock freq of K210.
This commit is contained in:
parent
5985986249
commit
45fb4113d1
4 changed files with 13 additions and 8 deletions
|
@ -9,7 +9,7 @@ use user_lib::{sys_get_time, sys_yield};
|
|||
#[no_mangle]
|
||||
fn main() -> i32 {
|
||||
let current_timer = sys_get_time();
|
||||
let wait_for = current_timer + 10000000;
|
||||
let wait_for = current_timer + 3000;
|
||||
while sys_get_time() < wait_for {
|
||||
sys_yield();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue