mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-04 04:27:34 +00:00
format services/kernel-test
This commit is contained in:
parent
2f9f91648c
commit
4a292c29a9
1 changed files with 3 additions and 11 deletions
|
|
@ -52,12 +52,7 @@ fn sleep_loop_4(main_conn: usize, sleep_ms: usize, ticktimer_conn: usize, pid: u
|
|||
}
|
||||
|
||||
fn sleep_loop_3(main_conn: usize, sleep_ms: usize, ticktimer_conn: usize) {
|
||||
sleep_loop_4(
|
||||
main_conn,
|
||||
sleep_ms,
|
||||
ticktimer_conn,
|
||||
xous::current_pid().unwrap().get() as _,
|
||||
);
|
||||
sleep_loop_4(main_conn, sleep_ms, ticktimer_conn, xous::current_pid().unwrap().get() as _);
|
||||
}
|
||||
|
||||
fn sleep_loop_2(main_conn: usize, sleep_ms: usize) {
|
||||
|
|
@ -66,15 +61,12 @@ fn sleep_loop_2(main_conn: usize, sleep_ms: usize) {
|
|||
}
|
||||
|
||||
fn sleep_loop_1(main_conn: usize) {
|
||||
let sleep_ms =
|
||||
(xous::current_pid().unwrap().get() as usize) * (xous::current_tid().unwrap() as usize);
|
||||
let sleep_ms = (xous::current_pid().unwrap().get() as usize) * (xous::current_tid().unwrap() as usize);
|
||||
sleep_loop_2(main_conn, sleep_ms);
|
||||
}
|
||||
|
||||
static mut MAIN_CONN: xous::CID = 0;
|
||||
fn sleep_loop_0() {
|
||||
sleep_loop_1(unsafe { MAIN_CONN } as _);
|
||||
}
|
||||
fn sleep_loop_0() { sleep_loop_1(unsafe { MAIN_CONN } as _); }
|
||||
|
||||
fn main() -> ! {
|
||||
log_server::init_wait().unwrap();
|
||||
|
|
|
|||
Loading…
Reference in a new issue