feat(power_glich): support power_glitch of esp32c5_eco1 and above, eco32c61 eco2 and above

This commit is contained in:
chaijie@espressif.com
2024-11-26 17:11:25 +08:00
committed by BOT
parent 7bca1fe76f
commit 74c34669f0
7 changed files with 58 additions and 32 deletions

View File

@@ -94,11 +94,7 @@ static inline void bootloader_ana_reset_config(void)
{
//Enable BOD reset (mode1)
brownout_ll_ana_reset_enable(true);
if (efuse_hal_chip_revision() == 0) {
// decrease power glitch reset voltage to avoid start the glitch reset
uint8_t power_glitch_dref = 0;
bootloader_power_glitch_reset_config(true, power_glitch_dref);
}
bootloader_power_glitch_reset_config(true);
}
esp_err_t bootloader_init(void)