xous-core/services/ticktimer-server/src/api.rs
bunnie 7e7ae82156 pivot spinor implementation
realizing some core assumptions were wrong, so, scrapping and
restarting
2021-07-15 23:00:50 +08:00

17 lines
395 B
Rust

#[derive(num_derive::FromPrimitive, num_derive::ToPrimitive, Debug)]
pub(crate) enum Opcode {
/// Get the elapsed time in milliseconds
ElapsedMs = 0,
/// Sleep for the specified numer of milliseconds
SleepMs = 1,
/// Recalculate the sleep time
RecalculateSleep = 2,
/// Suspend/resume callback
SuspendResume = 3,
/// force a WDT update
PingWdt = 4,
}