feat(brownout): Add brownout detector support on esp32c61

This commit is contained in:
C.S.M
2024-08-20 13:36:08 +08:00
parent e76c2c4b53
commit 8078ad7840
8 changed files with 237 additions and 4 deletions

View File

@@ -43,6 +43,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.esp32c61";
@@ -94,8 +95,8 @@ static inline void bootloader_ana_reset_config(void)
{
//Enable super WDT reset.
bootloader_ana_super_wdt_reset_config(true);
//Enable BOD reset TODO: IDF-9254 BOD support
// brownout_ll_ana_reset_enable(true);
//Enable BOD reset (mode1)
brownout_ll_ana_reset_enable(true);
}
esp_err_t bootloader_init(void)