[][src]Function esp_idf_bindgen::rtc_clk_cpu_freq_set_config_fast

pub unsafe extern "C" fn rtc_clk_cpu_freq_set_config_fast(
    config: *const rtc_cpu_freq_config_t
)

@brief Switch CPU frequency (optimized for speed)

This function is a faster equivalent of rtc_clk_cpu_freq_set_config. It works faster because it does not disable PLLs when switching from PLL to XTAL and does not enabled them when switching back. If PLL is not already enabled when this function is called to switch from XTAL to PLL frequency, or the PLL which is enabled is the wrong one, this function will fall back to calling rtc_clk_cpu_freq_set_config.

Unlike rtc_clk_cpu_freq_set_config, this function relies on static data, so it is less safe to use it e.g. from a panic handler (when memory might be corrupted).

@note This function in not intended to be called by applications in FreeRTOS environment. This is because it does not adjust various timers based on the new CPU frequency.

@param config CPU frequency configuration structure