mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-15 08:30:02 +00:00
21 lines
503 B
Rust
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");
|
|
}
|