Struct esp32_hal::clock_control::ClockControlConfig [−][src]
pub struct ClockControlConfig {}
Expand description
Clock configuration & locking for Dynamic Frequency Switching. It allows thread and interrupt safe way to switch between default, high CPU and APB frequency configuration.
Implementations
The current CPU frequency
The current APB frequency
The CPU frequency in the default state
The CPU frequency in the CPU lock state
The CPU frequency in the APB lock state
The APB frequency in the APB lock state
Is the reference clock 1MHz under all clock conditions
The current reference frequency
The current slow RTC frequency
The current fast RTC frequency
The current APLL frequency
The current PLL/2 frequency
The Xtal frequency
The 32kHz Xtal frequency
The current PLL frequency
The current 8MHz oscillator frequency
The current 8MHz oscillator frequency / 256
The current 150kHz oscillator frequency
The current source for the CPU and APB frequencies
The current source for the slow RTC frequency
The current source for the fast RTC frequency
Obtain a RAII lock to use the high CPU frequency
Obtain a RAII lock to use the APB CPU frequency
Obtain a RAII lock to keep the CPU from sleeping
Obtain a RAII lock to keep the PLL/2 from being turned off
Add callback which will be called when clock speeds are changed.
NOTE: these callbacks are called in an interrupt free environment, so should be as short as possible
Get the current count of the PCU, APB, Awake and PLL/2 locks
Start the APP (second) core
The second core will start running with the function entry
.
Start the APP (second) core
The second core will start running with the function entry
.
Get RTC tick count since boot
Note: this function takes up to one slow RTC clock cycle (can be up to 300us) and interrupts are blocked during this time.
Get nanoseconds since boot based on RTC tick count
Note: this function takes up to one slow RTC clock cycle (can be up to 300us) and interrupts are blocked during this time.