Skip to main content

DefaultClock

Type Alias DefaultClock 

Source
pub type DefaultClock = MHz16;
Available on crate feature board-selected and (crate features arduino-diecimila or arduino-leonardo or arduino-mega1280 or arduino-mega2560 or arduino-micro or arduino-nano or arduino-uno or nano168 or sparkfun-promicro or sparkfun-promini-5v or trinket-pro) only.
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§

pub struct DefaultClock;