mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-19 09:00:54 +00:00
add a comment about not modifying ticktimer APIs due to libstd dependency
This commit is contained in:
parent
91d0511fa4
commit
319e0e0641
1 changed files with 9 additions and 8 deletions
|
|
@ -1,3 +1,4 @@
|
||||||
|
/// Do not modify the discriminants in this structure. They are used in `libstd` directly.
|
||||||
#[derive(num_derive::FromPrimitive, num_derive::ToPrimitive, Debug)]
|
#[derive(num_derive::FromPrimitive, num_derive::ToPrimitive, Debug)]
|
||||||
pub(crate) enum Opcode {
|
pub(crate) enum Opcode {
|
||||||
/// Get the elapsed time in milliseconds
|
/// Get the elapsed time in milliseconds
|
||||||
|
|
@ -19,31 +20,31 @@ pub(crate) enum Opcode {
|
||||||
GetVersion = 5,
|
GetVersion = 5,
|
||||||
|
|
||||||
/// Lock the given Mutex, blocking if it is already locked.
|
/// Lock the given Mutex, blocking if it is already locked.
|
||||||
///
|
///
|
||||||
/// # Arguments
|
/// # Arguments
|
||||||
///
|
///
|
||||||
/// *arg1*: An integer of some sort, such as the address of the Mutex
|
/// *arg1*: An integer of some sort, such as the address of the Mutex
|
||||||
LockMutex = 6,
|
LockMutex = 6,
|
||||||
|
|
||||||
/// Unlock the given Mutex
|
/// Unlock the given Mutex
|
||||||
///
|
///
|
||||||
/// # Arguments
|
/// # Arguments
|
||||||
///
|
///
|
||||||
/// *arg1*: An integer of some sort, such as the address of the Mutex
|
/// *arg1*: An integer of some sort, such as the address of the Mutex
|
||||||
UnlockMutex = 7,
|
UnlockMutex = 7,
|
||||||
|
|
||||||
/// Wait for a given condition to be signalled
|
/// Wait for a given condition to be signalled
|
||||||
///
|
///
|
||||||
/// # Arguments
|
/// # Arguments
|
||||||
///
|
///
|
||||||
/// *arg1*: An integer of some sort, such as the address of the Condvar
|
/// *arg1*: An integer of some sort, such as the address of the Condvar
|
||||||
/// *arg2*: The number of milliseconds to wait, or 0 to wait forever
|
/// *arg2*: The number of milliseconds to wait, or 0 to wait forever
|
||||||
WaitForCondition = 8,
|
WaitForCondition = 8,
|
||||||
|
|
||||||
/// Notify a condition
|
/// Notify a condition
|
||||||
///
|
///
|
||||||
/// # Arguments
|
/// # Arguments
|
||||||
///
|
///
|
||||||
/// *arg1*: An integer of some sort, such as the address of the Condvar
|
/// *arg1*: An integer of some sort, such as the address of the Condvar
|
||||||
/// *arg2*: The number of conditions to notify
|
/// *arg2*: The number of conditions to notify
|
||||||
NotifyCondition = 9,
|
NotifyCondition = 9,
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue