mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-18 08:52:45 +00:00
examples: shell: remove Log Server stuff
We don't have a log server yet, so remove this dependency. Signed-off-by: Sean Cross <sean@xobs.io>
This commit is contained in:
parent
2aa6d1298f
commit
8be5855ea3
1 changed files with 29 additions and 29 deletions
|
|
@ -36,11 +36,11 @@ fn ensure_connection(server: xous::SID) -> xous::CID {
|
||||||
fn shell_main() -> ! {
|
fn shell_main() -> ! {
|
||||||
timer::init();
|
timer::init();
|
||||||
|
|
||||||
let log_server_id = xous::SID::from_bytes(b"xous-logs-output").unwrap();
|
// let log_server_id = xous::SID::from_bytes(b"xous-logs-output").unwrap();
|
||||||
let graphics_server_id = xous::SID::from_bytes(b"graphics-server ").unwrap();
|
let graphics_server_id = xous::SID::from_bytes(b"graphics-server ").unwrap();
|
||||||
|
|
||||||
println!("SHELL: Attempting to connect to servers...");
|
println!("SHELL: Attempting to connect to servers...");
|
||||||
let log_conn = ensure_connection(log_server_id);
|
let log_conn = 100;//ensure_connection(log_server_id);
|
||||||
let graphics_conn = ensure_connection(graphics_server_id);
|
let graphics_conn = ensure_connection(graphics_server_id);
|
||||||
|
|
||||||
println!(
|
println!(
|
||||||
|
|
@ -121,33 +121,33 @@ fn shell_main() -> ! {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
let lfsr = move_lfsr(lfsr);
|
// let lfsr = move_lfsr(lfsr);
|
||||||
if lfsr.trailing_zeros() >= 3 {
|
// if lfsr.trailing_zeros() >= 3 {
|
||||||
loop {
|
// loop {
|
||||||
match xous::syscall::try_send_message(
|
// match xous::syscall::try_send_message(
|
||||||
log_conn,
|
// log_conn,
|
||||||
xous::Message::Scalar(xous::ScalarMessage {
|
// xous::Message::Scalar(xous::ScalarMessage {
|
||||||
id: counter + 4096,
|
// id: counter + 4096,
|
||||||
arg1: counter,
|
// arg1: counter,
|
||||||
arg2: counter * 2,
|
// arg2: counter * 2,
|
||||||
arg3: !counter,
|
// arg3: !counter,
|
||||||
arg4: lfsr as _,
|
// arg4: lfsr as _,
|
||||||
}),
|
// }),
|
||||||
) {
|
// ) {
|
||||||
Err(xous::Error::ServerQueueFull) => {
|
// Err(xous::Error::ServerQueueFull) => {
|
||||||
println!("SHELL: Log Server queue is full... retrying");
|
// println!("SHELL: Log Server queue is full... retrying");
|
||||||
continue;
|
// continue;
|
||||||
}
|
// }
|
||||||
Ok(_) => {
|
// Ok(_) => {
|
||||||
println!("SHELL: Loop {}", counter);
|
// println!("SHELL: Loop {}", counter);
|
||||||
counter += 1;
|
// counter += 1;
|
||||||
break;
|
// break;
|
||||||
}
|
// }
|
||||||
Err(e) => panic!("Unable to send message: {:?}", e),
|
// Err(e) => panic!("Unable to send message: {:?}", e),
|
||||||
}
|
// }
|
||||||
}
|
// }
|
||||||
}
|
// }
|
||||||
// #[cfg(not(target_os = "none"))]
|
// // #[cfg(not(target_os = "none"))]
|
||||||
// std::thread::sleep(std::time::Duration::from_millis(500));
|
// std::thread::sleep(std::time::Duration::from_millis(500));
|
||||||
// if counter & 2 == 0 {
|
// if counter & 2 == 0 {
|
||||||
// xous::syscall::yield_slice();
|
// xous::syscall::yield_slice();
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue