xous-core/services/ticktimer-server/src/api.rs
Sean Cross b617ed2f32 services: ticktimer-server: explicitly specify opcode numbers
These opcode numbers will be baked in at the ABI level for several
libraries such as libstd.

Signed-off-by: Sean Cross <sean@xobs.io>
2021-05-20 12:47:02 +08:00

14 lines
350 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,
}