pub trait BoardInit {
// Required method
fn init_hardware();
}Expand description
Per-board hardware-init contract.
One impl per board (pub struct Mps2An385; impl BoardInit for Mps2An385). Vendor HAL calls — clock tree, pin mux, peripheral
wakes — live in Self::init_hardware. Called once by
crate::board::BoardEntry::run before any transport bringup or
executor lifecycle.
Required Methods§
Sourcefn init_hardware()
fn init_hardware()
Hardware init. Runs once on boot, before any allocation or
transport bringup. Panicking from here is the same as
panicking from fn main() — there’s no recovery path.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.