pub enum ChipConfig {}
Expand description
Chip configuration.
The earlgrey
chip crate supports multiple targets with slightly different
configurations, which are encoded through implementations of the
earlgrey::chip_config::EarlGreyConfig
trait. This type provides different
implementations of the EarlGreyConfig
trait, depending on Cargo’s
conditional compilation feature flags. If no feature is selected,
compilation will error.
Trait Implementations§
Source§impl EarlGreyConfig for ChipConfig
impl EarlGreyConfig for ChipConfig
Source§const NAME: &'static str = "fpga_cw310"
const NAME: &'static str = "fpga_cw310"
Identifier for the platform. This is useful for debugging to confirm the
correct configuration of the chip is being used.
Source§const PERIPHERAL_FREQ: u32 = 6_000_000u32
const PERIPHERAL_FREQ: u32 = 6_000_000u32
The clock speed of the peripherals in Hz.
Source§const AON_TIMER_FREQ: u32 = 250_000u32
const AON_TIMER_FREQ: u32 = 250_000u32
The clock of the AON Timer
Source§const UART_BAUDRATE: u32 = 115_200u32
const UART_BAUDRATE: u32 = 115_200u32
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.
Auto Trait Implementations§
impl Freeze for ChipConfig
impl RefUnwindSafe for ChipConfig
impl Send for ChipConfig
impl Sync for ChipConfig
impl Unpin for ChipConfig
impl UnwindSafe for ChipConfig
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