mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
feature: support xtal_xpd pmu parameters
This commit is contained in:
parent
4bc762621d
commit
f0b6e8f37e
@ -166,6 +166,19 @@ const pmu_sleep_config_t* pmu_sleep_config_default(
|
||||
analog_default.hp_sys.analog.xpd = 1;
|
||||
analog_default.hp_sys.analog.dbias = 2;
|
||||
}
|
||||
|
||||
if (!(pd_flags & PMU_SLEEP_PD_XTAL)){
|
||||
analog_default.hp_sys.analog.xpd = 1;
|
||||
analog_default.hp_sys.analog.pd_cur = 0;
|
||||
analog_default.hp_sys.analog.bias_sleep = 0;
|
||||
analog_default.hp_sys.analog.dbias = 25;
|
||||
|
||||
analog_default.lp_sys[LP(SLEEP)].analog.xpd = 1;
|
||||
analog_default.lp_sys[LP(SLEEP)].analog.pd_cur = 0;
|
||||
analog_default.lp_sys[LP(SLEEP)].analog.bias_sleep = 0;
|
||||
analog_default.lp_sys[LP(SLEEP)].analog.dbias = 26;
|
||||
}
|
||||
|
||||
config->analog = analog_default;
|
||||
}
|
||||
return config;
|
||||
|
Loading…
Reference in New Issue
Block a user