mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-15 08:30:02 +00:00
add std opcodes for ADC operations
This commit is contained in:
parent
35168f8085
commit
302b7b65bf
1 changed files with 6 additions and 10 deletions
|
|
@ -40,6 +40,8 @@ pub enum HalOpcode {
|
|||
ConfigureUdmaEvent = 8,
|
||||
// blocking scalar
|
||||
UdmaIrqStatusBits = 16,
|
||||
// blocking scalar
|
||||
UpdatePerclk = 18,
|
||||
|
||||
/// I2C operations
|
||||
I2c = 9,
|
||||
|
|
@ -51,16 +53,10 @@ pub enum HalOpcode {
|
|||
ConfigureIoxIrq = 11,
|
||||
IrqLocalHandler = 12,
|
||||
|
||||
/// Adc operations
|
||||
// blocking scalar
|
||||
ReadAdcChannel = 32,
|
||||
|
||||
/// Manipulate the OS timer
|
||||
SetPreemptionState = 64,
|
||||
|
||||
/// Behavior opcode base
|
||||
#[cfg(feature = "bio")]
|
||||
BehaviorBase0 = 0x1000,
|
||||
#[cfg(feature = "bio")]
|
||||
BehaviorBase1 = 0x2000,
|
||||
#[cfg(feature = "bio")]
|
||||
BehaviorBase2 = 0x3000,
|
||||
#[cfg(feature = "bio")]
|
||||
BehaviorBase3 = 0x4000,
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue