修改应用程序, 以满足测试
parent
206edeb6e0
commit
43cd467d9f
@ -0,0 +1,18 @@
|
||||
#![no_std]
|
||||
#![no_main]
|
||||
|
||||
#[macro_use]
|
||||
extern crate user_lib;
|
||||
|
||||
use user_lib::syscall::{sys_get_time, sys_yield};
|
||||
|
||||
#[no_mangle]
|
||||
fn main() -> i32 {
|
||||
let current_timer = sys_get_time();
|
||||
let wait_for = current_timer + 3000;
|
||||
loop {
|
||||
|
||||
}
|
||||
println!("Test sleep OK!");
|
||||
0
|
||||
}
|
Loading…
Reference in New Issue