Home
last modified time | relevance | path

Searched refs:cal_val (Results 1 – 1 of 1) sorted by relevance

/Zephyr-latest/drivers/clock_control/
Dclock_control_esp32.c552 uint32_t cal_val = 0; in esp32_select_rtc_slow_clk() local
590 cal_val = rtc_clk_cal(RTC_CAL_32K_OSC_SLOW, in esp32_select_rtc_slow_clk()
593 cal_val = rtc_clk_cal(RTC_CAL_32K_XTAL, CONFIG_RTC_CLK_CAL_CYCLES); in esp32_select_rtc_slow_clk()
595 if (cal_val == 0) { in esp32_select_rtc_slow_clk()
615 cal_val = rtc_clk_cal(RTC_CAL_RTC_MUX, CONFIG_RTC_CLK_CAL_CYCLES); in esp32_select_rtc_slow_clk()
619 cal_val = (uint32_t)(cal_dividend / rtc_clk_slow_freq_get_hz()); in esp32_select_rtc_slow_clk()
621 } while (cal_val == 0); in esp32_select_rtc_slow_clk()
623 LOG_DBG("RTC_SLOW_CLK calibration value: %d", cal_val); in esp32_select_rtc_slow_clk()
625 esp_clk_slowclk_cal_set(cal_val); in esp32_select_rtc_slow_clk()