Skip to content

Commit fc58a6c

Browse files
committed
fix(esp_hw_support): fix esp32p4 may get stuck when entering deepsleep
1 parent 7a85e65 commit fc58a6c

File tree

1 file changed

+2
-0
lines changed
  • components/hal/esp32p4/include/hal

1 file changed

+2
-0
lines changed

components/hal/esp32p4/include/hal/pmu_ll.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -678,9 +678,11 @@ FORCE_INLINE_ATTR void pmu_ll_set_dcdc_switch_force_power_down(pmu_dev_t *hw, bo
678678
FORCE_INLINE_ATTR void pmu_ll_set_dcdc_en(pmu_dev_t *hw, bool en)
679679
{
680680
if (en) {
681+
hw->dcm_ctrl.done_force = 0;
681682
hw->dcm_ctrl.on_req = 1;
682683
} else {
683684
hw->dcm_ctrl.off_req = 1;
685+
hw->dcm_ctrl.done_force = 1;
684686
}
685687
}
686688

0 commit comments

Comments
 (0)