Skip to content

Commit

Permalink
Merge branch 'bugfix/pmu_wait_xtal_stable_time_issue' into 'release/v…
Browse files Browse the repository at this point in the history
…5.1'

fix PMU wait xtal stable time issue for esp32c6

See merge request espressif/esp-idf!24259
  • Loading branch information
jack0c committed Jul 5, 2023
2 parents 7c696fc + 9216bdc commit 2cffd23
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions components/esp_hw_support/port/esp32c6/pmu_sleep.c
Original file line number Diff line number Diff line change
Expand Up @@ -126,9 +126,9 @@ static inline pmu_sleep_param_config_t * pmu_sleep_param_config_default(
param->lp_sys.digital_power_up_wait_cycle = rtc_time_us_to_fastclk(mc->lp.power_up_wait_time_us, fastclk_period);

if (power->hp_sys.xtal.xpd_xtal) {
param->hp_lp.xtal_stable_wait_cycle = rtc_time_us_to_fastclk(mc->hp.xtal_wait_stable_time_us, fastclk_period);
} else {
param->hp_lp.xtal_stable_wait_slow_clk_cycle = rtc_time_us_to_slowclk(mc->lp.xtal_wait_stable_time_us, slowclk_period);
} else {
param->hp_lp.xtal_stable_wait_cycle = rtc_time_us_to_fastclk(mc->hp.xtal_wait_stable_time_us, fastclk_period);
}
return param;
}
Expand Down

0 comments on commit 2cffd23

Please sign in to comment.