fix(esp_hw_support): fix esp32p4 may get stuck when entering deepsleep

This commit is contained in:
wuzhenghui
2025-04-27 19:27:24 +08:00
parent 734b1b1be5
commit e27321ab51

View File

@ -678,9 +678,11 @@ FORCE_INLINE_ATTR void pmu_ll_set_dcdc_switch_force_power_down(pmu_dev_t *hw, bo
FORCE_INLINE_ATTR void pmu_ll_set_dcdc_en(pmu_dev_t *hw, bool en)
{
if (en) {
hw->dcm_ctrl.done_force = 0;
hw->dcm_ctrl.on_req = 1;
} else {
hw->dcm_ctrl.off_req = 1;
hw->dcm_ctrl.done_force = 1;
}
}