rtc_clk_init() function
Initialize clocks and set CPU frequency If cfg.xtal_freq is set to SOC_XTAL_FREQ_AUTO, this function will attempt to auto detect XTAL frequency. Auto detection is performed by comparing XTAL frequency with the frequency of internal 8MHz oscillator. Note that at high temperatures the frequency of the internal 8MHz oscillator may drift enough for auto detection to be unreliable. Auto detection code will attempt to distinguish between 26MHz and 40MHz crystals. 24 MHz crystals are not supported by auto detection code. If XTAL frequency can not be auto detected, this 26MHz frequency will be used.
Arguments
cfg
clock configuration as rtc_clk_config_t
![]()
rtc_clk_init(clk_cfg);
rtc_clk_init() is called by 1 function and calls 26 functions:
![]()
rtc_clk_init()
rtc_clk_init() reads 17 variables:
![]()
rtc_clk_init()