mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
ci: fix IDFCI-377
This commit is contained in:
parent
5d92cdc5d9
commit
6dd6c8c3cf
@ -467,6 +467,7 @@ static esp_err_t esp_light_sleep_inner(uint32_t pd_flags,
|
|||||||
|
|
||||||
esp_err_t esp_light_sleep_start(void)
|
esp_err_t esp_light_sleep_start(void)
|
||||||
{
|
{
|
||||||
|
s_config.ccount_ticks_record = cpu_ll_get_cycle_count();
|
||||||
static portMUX_TYPE light_sleep_lock = portMUX_INITIALIZER_UNLOCKED;
|
static portMUX_TYPE light_sleep_lock = portMUX_INITIALIZER_UNLOCKED;
|
||||||
portENTER_CRITICAL(&light_sleep_lock);
|
portENTER_CRITICAL(&light_sleep_lock);
|
||||||
/* We will be calling esp_timer_private_advance inside DPORT access critical
|
/* We will be calling esp_timer_private_advance inside DPORT access critical
|
||||||
@ -491,7 +492,6 @@ esp_err_t esp_light_sleep_start(void)
|
|||||||
s_config.rtc_clk_cal_period = (time_per_us << RTC_CLK_CAL_FRACT) / rtc_clk_slow_freq_get_hz();
|
s_config.rtc_clk_cal_period = (time_per_us << RTC_CLK_CAL_FRACT) / rtc_clk_slow_freq_get_hz();
|
||||||
#elif defined(CONFIG_ESP32S2_RTC_CLK_SRC_INT_RC)
|
#elif defined(CONFIG_ESP32S2_RTC_CLK_SRC_INT_RC)
|
||||||
s_config.rtc_clk_cal_period = rtc_clk_cal_cycling(RTC_CAL_RTC_MUX, RTC_CLK_SRC_CAL_CYCLES);
|
s_config.rtc_clk_cal_period = rtc_clk_cal_cycling(RTC_CAL_RTC_MUX, RTC_CLK_SRC_CAL_CYCLES);
|
||||||
esp_clk_slowclk_cal_set(s_config.rtc_clk_cal_period);
|
|
||||||
#else
|
#else
|
||||||
s_config.rtc_clk_cal_period = rtc_clk_cal(RTC_CAL_RTC_MUX, RTC_CLK_SRC_CAL_CYCLES);
|
s_config.rtc_clk_cal_period = rtc_clk_cal(RTC_CAL_RTC_MUX, RTC_CLK_SRC_CAL_CYCLES);
|
||||||
#endif
|
#endif
|
||||||
@ -653,7 +653,6 @@ esp_err_t esp_sleep_enable_ulp_wakeup(void)
|
|||||||
|
|
||||||
esp_err_t esp_sleep_enable_timer_wakeup(uint64_t time_in_us)
|
esp_err_t esp_sleep_enable_timer_wakeup(uint64_t time_in_us)
|
||||||
{
|
{
|
||||||
s_config.ccount_ticks_record = cpu_ll_get_cycle_count();
|
|
||||||
s_config.wakeup_triggers |= RTC_TIMER_TRIG_EN;
|
s_config.wakeup_triggers |= RTC_TIMER_TRIG_EN;
|
||||||
s_config.sleep_duration = time_in_us;
|
s_config.sleep_duration = time_in_us;
|
||||||
return ESP_OK;
|
return ESP_OK;
|
||||||
|
Loading…
Reference in New Issue
Block a user