xous-core/services/ticktimer-test-client/src/main.rs
2023-04-05 16:37:55 +04:00

21 lines
503 B
Rust

#![cfg_attr(target_os = "none", no_std)]
#![cfg_attr(target_os = "none", no_main)]
use log::info;
use std::thread::sleep;
use std::time::Duration;
fn main() -> ! {
log_server::init_wait().unwrap();
log::set_max_level(log::LevelFilter::Trace);
info!("my PID is {}", xous::process::id());
const DELAY_MS: u64 = 5000;
for i in 0.. {
info!("Loop #{}, waiting {} ms", i, DELAY_MS);
sleep(Duration::from_millis(DELAY_MS));
}
panic!("Finished endless loop");
}