mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-15 08:30:02 +00:00
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>
This commit is contained in:
parent
3b540e4e9a
commit
b617ed2f32
1 changed files with 4 additions and 4 deletions
|
|
@ -1,14 +1,14 @@
|
|||
#[derive(num_derive::FromPrimitive, num_derive::ToPrimitive, Debug)]
|
||||
pub(crate) enum Opcode {
|
||||
/// Get the elapsed time in milliseconds
|
||||
ElapsedMs,
|
||||
ElapsedMs = 0,
|
||||
|
||||
/// Sleep for the specified numer of milliseconds
|
||||
SleepMs,
|
||||
SleepMs = 1,
|
||||
|
||||
/// Recalculate the sleep time
|
||||
RecalculateSleep,
|
||||
RecalculateSleep = 2,
|
||||
|
||||
/// Suspend/resume callback
|
||||
SuspendResume,
|
||||
SuspendResume = 3,
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue