mirror of
https://github.com/espressif/esp-idf.git
synced 2025-07-30 18:57:19 +02:00
fix(bod): Disable fib in bootloader so that interrupt can be triggered properly
This commit is contained in:
@ -1,9 +1,12 @@
|
|||||||
/*
|
/*
|
||||||
* SPDX-FileCopyrightText: 2022-2023 Espressif Systems (Shanghai) CO LTD
|
* SPDX-FileCopyrightText: 2022-2024 Espressif Systems (Shanghai) CO LTD
|
||||||
*
|
*
|
||||||
* SPDX-License-Identifier: Apache-2.0
|
* SPDX-License-Identifier: Apache-2.0
|
||||||
*/
|
*/
|
||||||
#include <stdbool.h>
|
#include <stdbool.h>
|
||||||
|
#include "soc/lp_analog_peri_reg.h"
|
||||||
|
#include "soc/soc.h"
|
||||||
|
#include "hal/brownout_ll.h"
|
||||||
|
|
||||||
void bootloader_ana_super_wdt_reset_config(bool enable)
|
void bootloader_ana_super_wdt_reset_config(bool enable)
|
||||||
{
|
{
|
||||||
@ -12,7 +15,9 @@ void bootloader_ana_super_wdt_reset_config(bool enable)
|
|||||||
|
|
||||||
void bootloader_ana_bod_reset_config(bool enable)
|
void bootloader_ana_bod_reset_config(bool enable)
|
||||||
{
|
{
|
||||||
//TODO: IDF-7514
|
REG_CLR_BIT(LP_ANALOG_PERI_FIB_ENABLE_REG, LP_ANALOG_PERI_LP_ANA_FIB_BOD_RST);
|
||||||
|
|
||||||
|
brownout_ll_ana_reset_enable(enable);
|
||||||
}
|
}
|
||||||
|
|
||||||
void bootloader_ana_clock_glitch_reset_config(bool enable)
|
void bootloader_ana_clock_glitch_reset_config(bool enable)
|
||||||
|
@ -233,6 +233,8 @@ extern "C" {
|
|||||||
#define LP_ANALOG_PERI_ANA_FIB_ENA_V 0xFFFFFFFFU
|
#define LP_ANALOG_PERI_ANA_FIB_ENA_V 0xFFFFFFFFU
|
||||||
#define LP_ANALOG_PERI_ANA_FIB_ENA_S 0
|
#define LP_ANALOG_PERI_ANA_FIB_ENA_S 0
|
||||||
|
|
||||||
|
#define LP_ANALOG_PERI_LP_ANA_FIB_BOD_RST BIT(1)
|
||||||
|
|
||||||
/** LP_ANALOG_PERI_INT_RAW_REG register
|
/** LP_ANALOG_PERI_INT_RAW_REG register
|
||||||
* need_des
|
* need_des
|
||||||
*/
|
*/
|
||||||
|
Reference in New Issue
Block a user