Skip to content

hal::soc

System-on-chip services used by portable kernel code.

struct SocCapabilities {
pub cores: u8,
pub interrupt_matrix: bool,
pub cache_off_execution: bool,
pub hardware_rng: bool,
}

Static hardware facts that change kernel strategy, not board pin wiring.

Implements: Clone, Copy, Debug, Eq, PartialEq, StructuralPartialEq

trait SystemOnChip {
unsafe fn configure_cpu_clock()
unsafe fn reset_cause() -> u32
fn reset_cause_name(cause: u32) -> &'static str
fn measure_cpu_hz(cycle_count: fn(..)) -> Option<u32>
}

The chip underneath a kernel build.