Enum ChipConfig

Source
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

Source§

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 CPU_FREQ: u32 = 24_000_000u32

The clock speed of the CPU in Hz.
Source§

const PERIPHERAL_FREQ: u32 = 6_000_000u32

The clock speed of the peripherals in Hz.
Source§

const AON_TIMER_FREQ: u32 = 250_000u32

The clock of the AON Timer
Source§

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§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.