pub struct Config {
pub device: Device,
pub build: Build,
pub peripherals: BTreeMap<String, Peripheral>,
pub clocks: Clocks,
pub trace: Trace,
}Expand description
A parsed stm32.toml.
Fields§
§device: Device§build: Build§peripherals: BTreeMap<String, Peripheral>[peripherals.<instance>] tables, keyed by instance name as written
(e.g. "usart2"). Order is normalized to lexical for deterministic
diagnostics.
clocks: Clocks[clocks] — which device bus domains are enabled. Absent means “all
enabled” so a config that omits the section never trips the clock check.
trace: TraceTrait Implementations§
Source§impl<'de> Deserialize<'de> for Config
impl<'de> Deserialize<'de> for Config
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for Config
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnsafeUnpin for Config
impl UnwindSafe for Config
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more