mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-24 09:40:52 +00:00
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>
14 lines
350 B
Rust
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,
|
|
}
|