mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-17 08:40:52 +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,
|
ConfigureUdmaEvent = 8,
|
||||||
// blocking scalar
|
// blocking scalar
|
||||||
UdmaIrqStatusBits = 16,
|
UdmaIrqStatusBits = 16,
|
||||||
|
// blocking scalar
|
||||||
|
UpdatePerclk = 18,
|
||||||
|
|
||||||
/// I2C operations
|
/// I2C operations
|
||||||
I2c = 9,
|
I2c = 9,
|
||||||
|
|
@ -51,16 +53,10 @@ pub enum HalOpcode {
|
||||||
ConfigureIoxIrq = 11,
|
ConfigureIoxIrq = 11,
|
||||||
IrqLocalHandler = 12,
|
IrqLocalHandler = 12,
|
||||||
|
|
||||||
|
/// Adc operations
|
||||||
|
// blocking scalar
|
||||||
|
ReadAdcChannel = 32,
|
||||||
|
|
||||||
/// Manipulate the OS timer
|
/// Manipulate the OS timer
|
||||||
SetPreemptionState = 64,
|
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