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
|
@ -2,7 +2,7 @@ use crate::task::{
|
|||
suspend_current_and_run_next,
|
||||
exit_current_and_run_next,
|
||||
};
|
||||
use crate::timer::get_time;
|
||||
use crate::timer::get_time_ms;
|
||||
|
||||
pub fn sys_exit(xstate: i32) -> ! {
|
||||
println!("[kernel] Application exited with code {}", xstate);
|
||||
|
@ -16,5 +16,5 @@ pub fn sys_yield() -> isize {
|
|||
}
|
||||
|
||||
pub fn sys_get_time() -> isize {
|
||||
get_time() as isize
|
||||
get_time_ms() as isize
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue