File tree Expand file tree Collapse file tree 1 file changed +2
-5
lines changed
components/esp_hw_support Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Original file line number Diff line number Diff line change 211211#endif
212212#endif
213213
214- // Minimal amount of time we can sleep for
215- #define LIGHT_SLEEP_MIN_TIME_US 200
216-
217214#define RTC_MODULE_SLEEP_PREPARE_CYCLES (6)
218215
219216#define CHECK_SOURCE (source , value , mask ) ((s_config.wakeup_triggers & mask) && \
@@ -1447,8 +1444,8 @@ esp_err_t esp_light_sleep_start(void)
14471444 * 4. All the adjustment time which is s_config.sleep_time_adjustment below.
14481445 */
14491446 const uint32_t vddsdio_pd_sleep_duration = MAX (FLASH_PD_MIN_SLEEP_TIME_US ,
1450- flash_enable_time_us + LIGHT_SLEEP_MIN_TIME_US + s_config .sleep_time_adjustment
1451- + rtc_time_slowclk_to_us (RTC_MODULE_SLEEP_PREPARE_CYCLES , s_config .rtc_clk_cal_period ));
1447+ flash_enable_time_us + s_config .sleep_time_adjustment
1448+ + rtc_time_slowclk_to_us (RTC_MODULE_SLEEP_PREPARE_CYCLES + RTC_CNTL_MIN_SLP_VAL_MIN , s_config .rtc_clk_cal_period ));
14521449
14531450 if (can_power_down_vddsdio (sleep_flags , vddsdio_pd_sleep_duration )) {
14541451 if (s_config .sleep_time_overhead_out < flash_enable_time_us ) {
You can’t perform that action at this time.
0 commit comments