Searched refs:period_cycles (Results 1 – 1 of 1) sorted by relevance
145 uint64_t period_cycles = (period_us_64 << RTC_CLK_CAL_FRACT) / esp_clk_slowclk_cal_get(); in ulp_set_wakeup_period() local149 if (period_cycles < min_sleep_period_cycles) { in ulp_set_wakeup_period()150 period_cycles = 0; in ulp_set_wakeup_period()153 period_cycles -= min_sleep_period_cycles; in ulp_set_wakeup_period()156 SENS_SLEEP_CYCLES_S0, (uint32_t) period_cycles); in ulp_set_wakeup_period()174 uint64_t period_cycles = rtc_time_us_to_slowclk(period_us_64, slow_clk_period); in ulp_set_wakeup_period()176 …SET_FIELD(RTC_CNTL_ULP_CP_TIMER_1_REG, RTC_CNTL_ULP_CP_TIMER_SLP_CYCLE, ((uint32_t)period_cycles)); in ulp_set_wakeup_period()