Trait EarlGreyConfig

Source
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§

Source

const NAME: &'static str

Identifier for the platform. This is useful for debugging to confirm the correct configuration of the chip is being used.

Source

const CPU_FREQ: u32

The clock speed of the CPU in Hz.

Source

const PERIPHERAL_FREQ: u32

The clock speed of the peripherals in Hz.

Source

const AON_TIMER_FREQ: u32

The clock of the AON Timer

Source

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", so this trait is not object safe.

Implementors§