mirror of
https://github.com/espressif/esp-idf.git
synced 2025-11-23 10:49:53 +01:00
feat(pwr_glitch): Add power glitch support on esp32c5/esp32c61
This commit is contained in:
committed by
zhoupeng
parent
1662e28718
commit
e1423c53d5
@@ -93,17 +93,17 @@ static inline void bootloader_hardware_init(void)
|
||||
|
||||
static inline void bootloader_ana_reset_config(void)
|
||||
{
|
||||
//Enable super WDT reset.
|
||||
bootloader_ana_super_wdt_reset_config(true);
|
||||
//Enable BOD reset (mode1)
|
||||
brownout_ll_ana_reset_enable(true);
|
||||
uint8_t power_glitch_dref = 0;
|
||||
bootloader_power_glitch_reset_config(true, power_glitch_dref);
|
||||
}
|
||||
|
||||
esp_err_t bootloader_init(void)
|
||||
{
|
||||
esp_err_t ret = ESP_OK;
|
||||
bootloader_hardware_init();
|
||||
// bootloader_ana_reset_config(); //TODO: [ESP32C61] IDF-9260
|
||||
bootloader_ana_reset_config();
|
||||
bootloader_super_wdt_auto_feed();
|
||||
|
||||
// In RAM_APP, memory will be initialized in `call_start_cpu0`
|
||||
|
||||
Reference in New Issue
Block a user