pub trait EarlGreyConfig {
const NAME: &'static str;
const CPU_FREQ: u32;
const PERIPHERAL_FREQ: u32;
const AON_TIMER_FREQ: u32;
const UART_BAUDRATE: u32;
}Expand description
Earlgrey configuration based on the target device.
Required Associated Constants§
Sourceconst NAME: &'static str
const NAME: &'static str
Identifier for the platform. This is useful for debugging to confirm the correct configuration of the chip is being used.
Sourceconst PERIPHERAL_FREQ: u32
const PERIPHERAL_FREQ: u32
The clock speed of the peripherals in Hz.
Sourceconst AON_TIMER_FREQ: u32
const AON_TIMER_FREQ: u32
The clock of the AON Timer
Sourceconst UART_BAUDRATE: u32
const UART_BAUDRATE: u32
The baud rate for UART. This allows for a version of the chip that can support a faster baud rate to use it to help with debugging.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".