Struct esp32c2_hal::clock::ClockControl
source · pub struct ClockControl { /* private fields */ }
Expand description
Used to configure the frequencies of the clocks present in the chip.
After setting all frequencies, call the freeze function to apply the configuration.
Implementations§
source§impl ClockControl
impl ClockControl
source§impl ClockControl
impl ClockControl
sourcepub fn boot_defaults(clock_control: SystemClockControl) -> ClockControl
pub fn boot_defaults(clock_control: SystemClockControl) -> ClockControl
Use what is considered the default settings after boot.
sourcepub fn configure(
clock_control: SystemClockControl,
cpu_clock_speed: CpuClock
) -> ClockControl
pub fn configure(
clock_control: SystemClockControl,
cpu_clock_speed: CpuClock
) -> ClockControl
Configure the CPU clock speed.