mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-16 08:38:26 +00:00
api changes for ADC service
This commit is contained in:
parent
663139b607
commit
e704477f79
2 changed files with 16 additions and 4 deletions
|
|
@ -53,10 +53,18 @@ pub enum HalOpcode {
|
|||
ConfigureIoxIrq = 11,
|
||||
IrqLocalHandler = 12,
|
||||
|
||||
/// Adc operations
|
||||
// blocking scalar
|
||||
ReadAdcChannel = 32,
|
||||
|
||||
/// Manipulate the OS timer
|
||||
SetPreemptionState = 64,
|
||||
}
|
||||
|
||||
#[derive(Debug, num_derive::FromPrimitive, num_derive::ToPrimitive)]
|
||||
#[repr(usize)]
|
||||
pub enum PeripheralOpcode {
|
||||
InvalidCall = 0,
|
||||
UpdatePerclk = 1,
|
||||
|
||||
/// Adc operations
|
||||
// blocking scalar
|
||||
ReadAdcChannel = 0x100,
|
||||
EnableChannel = 0x101,
|
||||
}
|
||||
|
|
|
|||
|
|
@ -49,6 +49,10 @@ pub const SERVER_NAME_KBD: &str = "_Matrix keyboard driver_";
|
|||
/// Do not change this constant, it is hard-coded into libraries in order to break
|
||||
/// circular dependencies on the IFRAM block.
|
||||
pub const SERVER_NAME_BAO1X_HAL: &str = "_bao1x-SoC HAL_";
|
||||
/// Server for peripherals that *also* depend on the core Bao1x HAL. These have to
|
||||
/// be in a separate server to avoid lock-up issues of the server depending on itself
|
||||
/// for services.
|
||||
pub const SERVER_NAME_BAO1X_OTHERS: &str = "_HAL-everthing-else_";
|
||||
|
||||
/// Number of boots to trigger the 'audit' command. It's set to be bigger than 1, because
|
||||
/// the chip tester may power cycle the chip during the provisioning process before the
|
||||
|
|
|
|||
Loading…
Reference in a new issue