mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-16 08:38:26 +00:00
stashing a bit of code so i can remember how to conjure a delay in susres
This commit is contained in:
parent
8b5ad2657b
commit
ec4515579c
1 changed files with 12 additions and 0 deletions
|
|
@ -840,6 +840,18 @@ fn send_event(cb_conns: &Vec::<ScalarCallback>, order: crate::api::SuspendOrder)
|
|||
#[cfg(not(any(target_os = "none", target_os = "xous")))]
|
||||
{
|
||||
if order == crate::api::SuspendOrder::Last {
|
||||
let tt_conn = xous::connect(xous::SID::from_bytes(b"ticktimer-server").unwrap()).unwrap();
|
||||
send_message(
|
||||
tt_conn,
|
||||
xous::Message::new_blocking_scalar(
|
||||
1,
|
||||
1000,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
),
|
||||
)
|
||||
.map(|_| ()).unwrap();
|
||||
xous::rsyscall(xous::SysCall::Shutdown).expect("unable to quit");
|
||||
}
|
||||
}*/
|
||||
|
|
|
|||
Loading…
Reference in a new issue