Trait slos_hal::SystemCpu [−][src]
pub trait SystemCpu {
fn interrupts_disable(&mut self);
fn interrupts_enable(&mut self);
fn interrupts_are_enabled(&self) -> bool;
fn halt(&mut self);
}
Expand description
System CPU handling
Required methods
fn interrupts_disable(&mut self)
fn interrupts_disable(&mut self)
Disable interrupts on the current CPU
fn interrupts_enable(&mut self)
fn interrupts_enable(&mut self)
Enable interrupts on the current CPU
fn interrupts_are_enabled(&self) -> bool
fn interrupts_are_enabled(&self) -> bool
Return whether interrupts are enabled on the current CPU