|
|
@@ -6,7 +6,6 @@
|
|
|
|
|
|
// The LL layer for ESP32-H2 PMU register operations
|
|
|
|
|
|
-//TODO: IDF-6267
|
|
|
#pragma once
|
|
|
|
|
|
#include <stdlib.h>
|
|
|
@@ -124,55 +123,25 @@ FORCE_INLINE_ATTR void pmu_ll_hp_set_retention_param(pmu_dev_t *hw, pmu_hp_mode_
|
|
|
hw->hp_sys[mode].backup.val = param;
|
|
|
}
|
|
|
|
|
|
-// FORCE_INLINE_ATTR void pmu_ll_hp_set_sleep_to_active_backup_enable(pmu_dev_t *hw)
|
|
|
-// {
|
|
|
-// hw->hp_sys[PMU_MODE_HP_ACTIVE].backup.hp_sleep2active_backup_en = 1;
|
|
|
-// }
|
|
|
-
|
|
|
-// FORCE_INLINE_ATTR void pmu_ll_hp_set_sleep_to_active_backup_disable(pmu_dev_t *hw)
|
|
|
-// {
|
|
|
-// hw->hp_sys[PMU_MODE_HP_ACTIVE].backup.hp_sleep2active_backup_en = 0;
|
|
|
-// }
|
|
|
-
|
|
|
-// FORCE_INLINE_ATTR void pmu_ll_hp_set_modem_to_active_backup_enable(pmu_dev_t *hw)
|
|
|
-// {
|
|
|
-// hw->hp_sys[PMU_MODE_HP_ACTIVE].backup.hp_modem2active_backup_en = 1;
|
|
|
-// }
|
|
|
-
|
|
|
-// FORCE_INLINE_ATTR void pmu_ll_hp_set_modem_to_active_backup_disable(pmu_dev_t *hw)
|
|
|
-// {
|
|
|
-// hw->hp_sys[PMU_MODE_HP_ACTIVE].backup.hp_modem2active_backup_en = 0;
|
|
|
-// }
|
|
|
-
|
|
|
-// FORCE_INLINE_ATTR void pmu_ll_hp_set_sleep_to_modem_backup_enable(pmu_dev_t *hw)
|
|
|
-// {
|
|
|
-// hw->hp_sys[PMU_MODE_HP_MODEM].backup.hp_sleep2modem_backup_en = 1;
|
|
|
-// }
|
|
|
-
|
|
|
-// FORCE_INLINE_ATTR void pmu_ll_hp_set_sleep_to_modem_backup_disable(pmu_dev_t *hw)
|
|
|
-// {
|
|
|
-// hw->hp_sys[PMU_MODE_HP_MODEM].backup.hp_sleep2modem_backup_en = 0;
|
|
|
-// }
|
|
|
-
|
|
|
-// FORCE_INLINE_ATTR void pmu_ll_hp_set_active_to_sleep_backup_enable(pmu_dev_t *hw)
|
|
|
-// {
|
|
|
-// hw->hp_sys[PMU_MODE_HP_SLEEP].backup.hp_active2sleep_backup_en = 1;
|
|
|
-// }
|
|
|
-
|
|
|
-// FORCE_INLINE_ATTR void pmu_ll_hp_set_active_to_sleep_backup_disable(pmu_dev_t *hw)
|
|
|
-// {
|
|
|
-// hw->hp_sys[PMU_MODE_HP_SLEEP].backup.hp_active2sleep_backup_en = 0;
|
|
|
-// }
|
|
|
-
|
|
|
-// FORCE_INLINE_ATTR void pmu_ll_hp_set_modem_to_sleep_backup_enable(pmu_dev_t *hw)
|
|
|
-// {
|
|
|
-// hw->hp_sys[PMU_MODE_HP_SLEEP].backup.hp_modem2sleep_backup_en = 1;
|
|
|
-// }
|
|
|
-
|
|
|
-// FORCE_INLINE_ATTR void pmu_ll_hp_set_modem_to_sleep_backup_disable(pmu_dev_t *hw)
|
|
|
-// {
|
|
|
-// hw->hp_sys[PMU_MODE_HP_SLEEP].backup.hp_modem2sleep_backup_en = 0;
|
|
|
-// }
|
|
|
+FORCE_INLINE_ATTR void pmu_ll_hp_set_sleep_to_active_backup_enable(pmu_dev_t *hw)
|
|
|
+{
|
|
|
+ hw->hp_sys[PMU_MODE_HP_ACTIVE].backup.hp_sleep2active_backup_en = 1;
|
|
|
+}
|
|
|
+
|
|
|
+FORCE_INLINE_ATTR void pmu_ll_hp_set_sleep_to_active_backup_disable(pmu_dev_t *hw)
|
|
|
+{
|
|
|
+ hw->hp_sys[PMU_MODE_HP_ACTIVE].backup.hp_sleep2active_backup_en = 0;
|
|
|
+}
|
|
|
+
|
|
|
+FORCE_INLINE_ATTR void pmu_ll_hp_set_active_to_sleep_backup_enable(pmu_dev_t *hw)
|
|
|
+{
|
|
|
+ hw->hp_sys[PMU_MODE_HP_SLEEP].backup.hp_active2sleep_backup_en = 1;
|
|
|
+}
|
|
|
+
|
|
|
+FORCE_INLINE_ATTR void pmu_ll_hp_set_active_to_sleep_backup_disable(pmu_dev_t *hw)
|
|
|
+{
|
|
|
+ hw->hp_sys[PMU_MODE_HP_SLEEP].backup.hp_active2sleep_backup_en = 0;
|
|
|
+}
|
|
|
|
|
|
FORCE_INLINE_ATTR void pmu_ll_hp_set_backup_icg_func(pmu_dev_t *hw, pmu_hp_mode_t mode, uint32_t icg_func)
|
|
|
{
|
|
|
@@ -303,7 +272,6 @@ FORCE_INLINE_ATTR void pmu_ll_lp_set_bias_sleep_enable(pmu_dev_t *hw, pmu_lp_mod
|
|
|
hw->lp_sys[mode].bias.bias_sleep = en;
|
|
|
}
|
|
|
|
|
|
-/****/
|
|
|
FORCE_INLINE_ATTR void pmu_ll_imm_set_clk_power(pmu_dev_t *hw, uint32_t flag)
|
|
|
{
|
|
|
hw->imm.clk_power.val = flag;
|
|
|
@@ -323,10 +291,10 @@ FORCE_INLINE_ATTR void pmu_ll_imm_update_dig_sysclk_sel(pmu_dev_t *hw, bool upda
|
|
|
hw->imm.sleep_sysclk.update_dig_sysclk_sel = update;
|
|
|
}
|
|
|
|
|
|
-// FORCE_INLINE_ATTR void pmu_ll_imm_update_dig_icg_switch(pmu_dev_t *hw, bool update)
|
|
|
-// {
|
|
|
-// hw->imm.sleep_sysclk.update_dig_icg_switch = update;
|
|
|
-// }
|
|
|
+FORCE_INLINE_ATTR void pmu_ll_imm_update_dig_icg_switch(pmu_dev_t *hw, bool update)
|
|
|
+{
|
|
|
+ hw->imm.sleep_sysclk.update_dig_icg_switch = update;
|
|
|
+}
|
|
|
|
|
|
FORCE_INLINE_ATTR void pmu_ll_imm_update_dig_icg_func(pmu_dev_t *hw, bool icg_func_update)
|
|
|
{
|
|
|
@@ -370,7 +338,6 @@ FORCE_INLINE_ATTR void pmu_ll_imm_set_lp_pad_hold_all(pmu_dev_t *hw, bool hold_a
|
|
|
}
|
|
|
}
|
|
|
|
|
|
-/*** */
|
|
|
FORCE_INLINE_ATTR void pmu_ll_hp_set_power_force_reset(pmu_dev_t *hw, pmu_hp_power_domain_t domain, bool rst)
|
|
|
{
|
|
|
hw->power.hp_pd[domain].force_reset = rst;
|
|
|
@@ -451,7 +418,6 @@ FORCE_INLINE_ATTR void pmu_ll_hp_set_memory_power_up(pmu_dev_t *hw, uint32_t fpu
|
|
|
hw->power.mem_cntl.force_hp_mem_pu = fpu;
|
|
|
}
|
|
|
|
|
|
-/*** */
|
|
|
FORCE_INLINE_ATTR void pmu_ll_hp_set_sleep_enable(pmu_dev_t *hw)
|
|
|
{
|
|
|
hw->wakeup.cntl0.sleep_req = 1;
|
|
|
@@ -473,10 +439,10 @@ FORCE_INLINE_ATTR void pmu_ll_hp_set_wakeup_enable(pmu_dev_t *hw, uint32_t wakeu
|
|
|
hw->wakeup.cntl2 = wakeup;
|
|
|
}
|
|
|
|
|
|
-// FORCE_INLINE_ATTR void pmu_ll_hp_set_sleep_protect_mode(pmu_dev_t *hw, int mode)
|
|
|
-// {
|
|
|
-// hw->wakeup.cntl3.sleep_prt_sel = mode;
|
|
|
-// }
|
|
|
+FORCE_INLINE_ATTR void pmu_ll_hp_set_sleep_protect_mode(pmu_dev_t *hw, int mode)
|
|
|
+{
|
|
|
+ hw->wakeup.cntl3.sleep_prt_sel = mode;
|
|
|
+}
|
|
|
|
|
|
FORCE_INLINE_ATTR void pmu_ll_hp_set_min_sleep_cycle(pmu_dev_t *hw, uint32_t cycle)
|
|
|
{
|
|
|
@@ -518,140 +484,130 @@ FORCE_INLINE_ATTR uint32_t pmu_ll_hp_get_reject_cause(pmu_dev_t *hw)
|
|
|
return hw->wakeup.status1;
|
|
|
}
|
|
|
|
|
|
-// FORCE_INLINE_ATTR void pmu_ll_lp_set_min_sleep_cycle(pmu_dev_t *hw, uint32_t slow_clk_cycle)
|
|
|
-// {
|
|
|
-// hw->wakeup.cntl3.lp_min_slp_val = slow_clk_cycle;
|
|
|
-// }
|
|
|
-
|
|
|
-// FORCE_INLINE_ATTR void pmu_ll_hp_set_modify_icg_cntl_wait_cycle(pmu_dev_t *hw, uint32_t cycle)
|
|
|
-// {
|
|
|
-// hw->hp_ext.clk_cntl.modify_icg_cntl_wait = cycle;
|
|
|
-// }
|
|
|
-
|
|
|
-// FORCE_INLINE_ATTR uint32_t pmu_ll_hp_get_modify_icg_cntl_wait_cycle(pmu_dev_t *hw)
|
|
|
-// {
|
|
|
-// return hw->hp_ext.clk_cntl.modify_icg_cntl_wait;
|
|
|
-// }
|
|
|
-
|
|
|
-// FORCE_INLINE_ATTR void pmu_ll_hp_set_switch_icg_cntl_wait_cycle(pmu_dev_t *hw, uint32_t cycle)
|
|
|
-// {
|
|
|
-// hw->hp_ext.clk_cntl.switch_icg_cntl_wait = cycle;
|
|
|
-// }
|
|
|
-
|
|
|
-// FORCE_INLINE_ATTR uint32_t pmu_ll_hp_get_switch_icg_cntl_wait_cycle(pmu_dev_t *hw)
|
|
|
-// {
|
|
|
-// return hw->hp_ext.clk_cntl.switch_icg_cntl_wait;
|
|
|
-// }
|
|
|
-
|
|
|
-// FORCE_INLINE_ATTR void pmu_ll_hp_set_digital_power_down_wait_cycle(pmu_dev_t *hw, uint32_t cycle)
|
|
|
-// {
|
|
|
-// hw->power.wait_timer0.powerdown_timer = cycle;
|
|
|
-// }
|
|
|
-
|
|
|
-// FORCE_INLINE_ATTR uint32_t pmu_ll_hp_get_digital_power_down_wait_cycle(pmu_dev_t *hw)
|
|
|
-// {
|
|
|
-// return hw->power.wait_timer0.powerdown_timer;
|
|
|
-// }
|
|
|
-
|
|
|
-// FORCE_INLINE_ATTR void pmu_ll_lp_set_digital_power_down_wait_cycle(pmu_dev_t *hw, uint32_t cycle)
|
|
|
-// {
|
|
|
-// hw->power.wait_timer1.powerdown_timer = cycle;
|
|
|
-// }
|
|
|
-
|
|
|
-// FORCE_INLINE_ATTR uint32_t pmu_ll_lp_get_digital_power_down_wait_cycle(pmu_dev_t *hw)
|
|
|
-// {
|
|
|
-// return hw->power.wait_timer1.powerdown_timer;
|
|
|
-// }
|
|
|
-
|
|
|
-// FORCE_INLINE_ATTR void pmu_ll_lp_set_analog_wait_target_cycle(pmu_dev_t *hw, uint32_t slow_clk_cycle)
|
|
|
-// {
|
|
|
-// hw->wakeup.cntl5.lp_ana_wait_target = slow_clk_cycle;
|
|
|
-// }
|
|
|
-
|
|
|
-// FORCE_INLINE_ATTR uint32_t pmu_ll_lp_get_analog_wait_target_cycle(pmu_dev_t *hw)
|
|
|
-// {
|
|
|
-// return hw->wakeup.cntl5.lp_ana_wait_target;
|
|
|
-// }
|
|
|
-
|
|
|
-// FORCE_INLINE_ATTR void pmu_ll_set_modem_wait_target_cycle(pmu_dev_t *hw, uint32_t cycle)
|
|
|
-// {
|
|
|
-// hw->wakeup.cntl5.modem_wait_target = cycle;
|
|
|
-// }
|
|
|
-
|
|
|
-// FORCE_INLINE_ATTR uint32_t pmu_ll_get_modem_wait_target_cycle(pmu_dev_t *hw)
|
|
|
-// {
|
|
|
-// return hw->wakeup.cntl5.modem_wait_target;
|
|
|
-// }
|
|
|
-
|
|
|
-// FORCE_INLINE_ATTR void pmu_ll_set_xtal_stable_wait_cycle(pmu_dev_t *hw, uint32_t cycle)
|
|
|
-// {
|
|
|
-// hw->power.clk_wait.wait_xtal_stable = cycle;
|
|
|
-// }
|
|
|
-
|
|
|
-// FORCE_INLINE_ATTR uint32_t pmu_ll_get_xtal_stable_wait_cycle(pmu_dev_t *hw)
|
|
|
-// {
|
|
|
-// return hw->power.clk_wait.wait_xtal_stable;
|
|
|
-// }
|
|
|
-
|
|
|
-// FORCE_INLINE_ATTR void pmu_ll_set_pll_stable_wait_cycle(pmu_dev_t *hw, uint32_t cycle)
|
|
|
-// {
|
|
|
-// hw->power.clk_wait.wait_pll_stable = cycle;
|
|
|
-// }
|
|
|
-
|
|
|
-// FORCE_INLINE_ATTR uint32_t pmu_ll_get_pll_stable_wait_cycle(pmu_dev_t *hw)
|
|
|
-// {
|
|
|
-// return hw->power.clk_wait.wait_pll_stable;
|
|
|
-// }
|
|
|
-
|
|
|
-// FORCE_INLINE_ATTR void pmu_ll_lp_set_digital_power_supply_wait_cycle(pmu_dev_t *hw, uint32_t cycle)
|
|
|
-// {
|
|
|
-// hw->power.wait_timer1.wait_timer = cycle;
|
|
|
-// }
|
|
|
-
|
|
|
-// FORCE_INLINE_ATTR uint32_t pmu_ll_lp_get_digital_power_supply_wait_cycle(pmu_dev_t *hw)
|
|
|
-// {
|
|
|
-// return hw->power.wait_timer1.wait_timer;
|
|
|
-// }
|
|
|
-
|
|
|
-// FORCE_INLINE_ATTR void pmu_ll_lp_set_digital_power_up_wait_cycle(pmu_dev_t *hw, uint32_t cycle)
|
|
|
-// {
|
|
|
-// hw->power.wait_timer1.powerup_timer = cycle;
|
|
|
-// }
|
|
|
-
|
|
|
-// FORCE_INLINE_ATTR uint32_t pmu_ll_lp_get_digital_power_up_wait_cycle(pmu_dev_t *hw)
|
|
|
-// {
|
|
|
-// return hw->power.wait_timer1.powerup_timer;
|
|
|
-// }
|
|
|
-
|
|
|
-// FORCE_INLINE_ATTR void pmu_ll_hp_set_analog_wait_target_cycle(pmu_dev_t *hw, uint32_t cycle)
|
|
|
-// {
|
|
|
-// hw->wakeup.cntl7.ana_wait_target = cycle;
|
|
|
-// }
|
|
|
-
|
|
|
-// FORCE_INLINE_ATTR uint32_t pmu_ll_hp_get_analog_wait_target_cycle(pmu_dev_t *hw)
|
|
|
-// {
|
|
|
-// return hw->wakeup.cntl7.ana_wait_target;
|
|
|
-// }
|
|
|
-
|
|
|
-// FORCE_INLINE_ATTR void pmu_ll_hp_set_digital_power_supply_wait_cycle(pmu_dev_t *hw, uint32_t cycle)
|
|
|
-// {
|
|
|
-// hw->power.wait_timer0.wait_timer = cycle;
|
|
|
-// }
|
|
|
-
|
|
|
-// FORCE_INLINE_ATTR uint32_t pmu_ll_hp_get_digital_power_supply_wait_cycle(pmu_dev_t *hw)
|
|
|
-// {
|
|
|
-// return hw->power.wait_timer0.wait_timer;
|
|
|
-// }
|
|
|
-
|
|
|
-// FORCE_INLINE_ATTR void pmu_ll_hp_set_digital_power_up_wait_cycle(pmu_dev_t *hw, uint32_t cycle)
|
|
|
-// {
|
|
|
-// hw->power.wait_timer0.powerup_timer = cycle;
|
|
|
-// }
|
|
|
-
|
|
|
-// FORCE_INLINE_ATTR uint32_t pmu_ll_hp_get_digital_power_up_wait_cycle(pmu_dev_t *hw)
|
|
|
-// {
|
|
|
-// return hw->power.wait_timer0.powerup_timer;
|
|
|
-// }
|
|
|
+FORCE_INLINE_ATTR void pmu_ll_lp_set_min_sleep_cycle(pmu_dev_t *hw, uint32_t slow_clk_cycle)
|
|
|
+{
|
|
|
+ hw->wakeup.cntl3.lp_min_slp_val = slow_clk_cycle;
|
|
|
+}
|
|
|
+
|
|
|
+FORCE_INLINE_ATTR void pmu_ll_hp_set_modify_icg_cntl_wait_cycle(pmu_dev_t *hw, uint32_t cycle)
|
|
|
+{
|
|
|
+ hw->hp_ext.clk_cntl.modify_icg_cntl_wait = cycle;
|
|
|
+}
|
|
|
+
|
|
|
+FORCE_INLINE_ATTR uint32_t pmu_ll_hp_get_modify_icg_cntl_wait_cycle(pmu_dev_t *hw)
|
|
|
+{
|
|
|
+ return hw->hp_ext.clk_cntl.modify_icg_cntl_wait;
|
|
|
+}
|
|
|
+
|
|
|
+FORCE_INLINE_ATTR void pmu_ll_hp_set_switch_icg_cntl_wait_cycle(pmu_dev_t *hw, uint32_t cycle)
|
|
|
+{
|
|
|
+ hw->hp_ext.clk_cntl.switch_icg_cntl_wait = cycle;
|
|
|
+}
|
|
|
+
|
|
|
+FORCE_INLINE_ATTR uint32_t pmu_ll_hp_get_switch_icg_cntl_wait_cycle(pmu_dev_t *hw)
|
|
|
+{
|
|
|
+ return hw->hp_ext.clk_cntl.switch_icg_cntl_wait;
|
|
|
+}
|
|
|
+
|
|
|
+FORCE_INLINE_ATTR void pmu_ll_hp_set_digital_power_down_wait_cycle(pmu_dev_t *hw, uint32_t cycle)
|
|
|
+{
|
|
|
+ hw->power.wait_timer0.powerdown_timer = cycle;
|
|
|
+}
|
|
|
+
|
|
|
+FORCE_INLINE_ATTR uint32_t pmu_ll_hp_get_digital_power_down_wait_cycle(pmu_dev_t *hw)
|
|
|
+{
|
|
|
+ return hw->power.wait_timer0.powerdown_timer;
|
|
|
+}
|
|
|
+
|
|
|
+FORCE_INLINE_ATTR void pmu_ll_lp_set_digital_power_down_wait_cycle(pmu_dev_t *hw, uint32_t cycle)
|
|
|
+{
|
|
|
+ hw->power.wait_timer1.powerdown_timer = cycle;
|
|
|
+}
|
|
|
+
|
|
|
+FORCE_INLINE_ATTR uint32_t pmu_ll_lp_get_digital_power_down_wait_cycle(pmu_dev_t *hw)
|
|
|
+{
|
|
|
+ return hw->power.wait_timer1.powerdown_timer;
|
|
|
+}
|
|
|
+
|
|
|
+FORCE_INLINE_ATTR void pmu_ll_lp_set_analog_wait_target_cycle(pmu_dev_t *hw, uint32_t slow_clk_cycle)
|
|
|
+{
|
|
|
+ hw->wakeup.cntl5.lp_ana_wait_target = slow_clk_cycle;
|
|
|
+}
|
|
|
+
|
|
|
+FORCE_INLINE_ATTR uint32_t pmu_ll_lp_get_analog_wait_target_cycle(pmu_dev_t *hw)
|
|
|
+{
|
|
|
+ return hw->wakeup.cntl5.lp_ana_wait_target;
|
|
|
+}
|
|
|
+
|
|
|
+FORCE_INLINE_ATTR void pmu_ll_set_xtal_stable_wait_cycle(pmu_dev_t *hw, uint32_t cycle)
|
|
|
+{
|
|
|
+ hw->power.clk_wait.wait_xtal_stable = cycle;
|
|
|
+}
|
|
|
+
|
|
|
+FORCE_INLINE_ATTR uint32_t pmu_ll_get_xtal_stable_wait_cycle(pmu_dev_t *hw)
|
|
|
+{
|
|
|
+ return hw->power.clk_wait.wait_xtal_stable;
|
|
|
+}
|
|
|
+
|
|
|
+FORCE_INLINE_ATTR void pmu_ll_set_pll_stable_wait_cycle(pmu_dev_t *hw, uint32_t cycle)
|
|
|
+{
|
|
|
+ hw->power.clk_wait.wait_pll_stable = cycle;
|
|
|
+}
|
|
|
+
|
|
|
+FORCE_INLINE_ATTR uint32_t pmu_ll_get_pll_stable_wait_cycle(pmu_dev_t *hw)
|
|
|
+{
|
|
|
+ return hw->power.clk_wait.wait_pll_stable;
|
|
|
+}
|
|
|
+
|
|
|
+FORCE_INLINE_ATTR void pmu_ll_lp_set_digital_power_supply_wait_cycle(pmu_dev_t *hw, uint32_t cycle)
|
|
|
+{
|
|
|
+ hw->power.wait_timer1.wait_timer = cycle;
|
|
|
+}
|
|
|
+
|
|
|
+FORCE_INLINE_ATTR uint32_t pmu_ll_lp_get_digital_power_supply_wait_cycle(pmu_dev_t *hw)
|
|
|
+{
|
|
|
+ return hw->power.wait_timer1.wait_timer;
|
|
|
+}
|
|
|
+
|
|
|
+FORCE_INLINE_ATTR void pmu_ll_lp_set_digital_power_up_wait_cycle(pmu_dev_t *hw, uint32_t cycle)
|
|
|
+{
|
|
|
+ hw->power.wait_timer1.powerup_timer = cycle;
|
|
|
+}
|
|
|
+
|
|
|
+FORCE_INLINE_ATTR uint32_t pmu_ll_lp_get_digital_power_up_wait_cycle(pmu_dev_t *hw)
|
|
|
+{
|
|
|
+ return hw->power.wait_timer1.powerup_timer;
|
|
|
+}
|
|
|
+
|
|
|
+FORCE_INLINE_ATTR void pmu_ll_hp_set_analog_wait_target_cycle(pmu_dev_t *hw, uint32_t cycle)
|
|
|
+{
|
|
|
+ hw->wakeup.cntl7.ana_wait_target = cycle;
|
|
|
+}
|
|
|
+
|
|
|
+FORCE_INLINE_ATTR uint32_t pmu_ll_hp_get_analog_wait_target_cycle(pmu_dev_t *hw)
|
|
|
+{
|
|
|
+ return hw->wakeup.cntl7.ana_wait_target;
|
|
|
+}
|
|
|
+
|
|
|
+FORCE_INLINE_ATTR void pmu_ll_hp_set_digital_power_supply_wait_cycle(pmu_dev_t *hw, uint32_t cycle)
|
|
|
+{
|
|
|
+ hw->power.wait_timer0.wait_timer = cycle;
|
|
|
+}
|
|
|
+
|
|
|
+FORCE_INLINE_ATTR uint32_t pmu_ll_hp_get_digital_power_supply_wait_cycle(pmu_dev_t *hw)
|
|
|
+{
|
|
|
+ return hw->power.wait_timer0.wait_timer;
|
|
|
+}
|
|
|
+
|
|
|
+FORCE_INLINE_ATTR void pmu_ll_hp_set_digital_power_up_wait_cycle(pmu_dev_t *hw, uint32_t cycle)
|
|
|
+{
|
|
|
+ hw->power.wait_timer0.powerup_timer = cycle;
|
|
|
+}
|
|
|
+
|
|
|
+FORCE_INLINE_ATTR uint32_t pmu_ll_hp_get_digital_power_up_wait_cycle(pmu_dev_t *hw)
|
|
|
+{
|
|
|
+ return hw->power.wait_timer0.powerup_timer;
|
|
|
+}
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
}
|