feat(brownout): Add brownout detector support on esp32c5

This commit is contained in:
C.S.M
2024-08-19 15:49:08 +08:00
parent fab065848d
commit e76c2c4b53
7 changed files with 184 additions and 7 deletions

View File

@@ -42,6 +42,7 @@
#include "hal/efuse_hal.h"
#include "hal/lpwdt_ll.h"
#include "hal/regi2c_ctrl_ll.h"
#include "hal/brownout_ll.h"
static const char *TAG = "boot.esp32c5";
@@ -94,9 +95,8 @@ static inline void bootloader_ana_reset_config(void)
// TODO: [ESP32C5] IDF-8650
//Enable super WDT reset.
// bootloader_ana_super_wdt_reset_config(true);
// TODO: [ESP32C5] IDF-8647
//Enable BOD reset TODO: [ESP32C5] IDF-8667
// brownout_ll_ana_reset_enable(true);
//Enable BOD reset (mode1)
brownout_ll_ana_reset_enable(true);
}
esp_err_t bootloader_init(void)