Type Alias DefaultClock

Source
pub type DefaultClock = MHz16;
Expand description

Default clock speed for this board.

arduino-hal contains a lot of type aliases for assuming this clock speed. As such it is easiest to keep the processor at the selected default speed.

However, you can of course still use other clock speeds but you’ll then need to correctly name the types from the HAL crate using your own clock definition.

Aliased Type§

struct DefaultClock;

Trait Implementations

Source§

impl Clock for MHz16

Source§

const FREQ: u32 = 16_000_000u32

Frequency of this clock in Hz
Source§

impl Debug for MHz16

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
Source§

impl uDebug for MHz16

Source§

fn fmt<W>(&self, f: &mut Formatter<'_, W>) -> Result<(), <W as uWrite>::Error>
where W: uWrite + ?Sized,

Formats the value using the given formatter