esp_clk_slowclk_cal_set() function
Update the calibration value of RTC slow clock The value has to be in the same format as returned by rtc_clk_cal (microseconds, in Q13.19 fixed-point format). This value is used by timekeeping functions (such as gettimeofday) to calculate current time based on RTC counter value.
Syntax
void esp_clk_slowclk_cal_set(uint32_t value); Arguments
value
calibration value obtained using rtc_clk_cal
esp_clk_slowclk_cal_set() is called by 3 functions and calls 2 functions:
![]()
esp_clk_slowclk_cal_set()