add std opcodes for ADC operations

This commit is contained in:
bunnie 2026-02-23 18:53:19 +08:00
parent 35168f8085
commit 302b7b65bf

View file

@ -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,
}