Struct esp32c2_hal::clock::ClockControl
source · pub struct ClockControl<'d> { /* 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<'d> ClockControl<'d>
impl<'d> ClockControl<'d>
source§impl<'d> ClockControl<'d>
impl<'d> ClockControl<'d>
sourcepub fn boot_defaults(
clock_control: impl Peripheral<P = SystemClockControl> + 'd
) -> ClockControl<'d>
pub fn boot_defaults( clock_control: impl Peripheral<P = SystemClockControl> + 'd ) -> ClockControl<'d>
Use what is considered the default settings after boot.
sourcepub fn configure(
clock_control: impl Peripheral<P = SystemClockControl> + 'd,
cpu_clock_speed: CpuClock
) -> ClockControl<'d>
pub fn configure( clock_control: impl Peripheral<P = SystemClockControl> + 'd, cpu_clock_speed: CpuClock ) -> ClockControl<'d>
Configure the CPU clock speed.