mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
brownout: Disable the hardware BOD when BOD interrupt is enabled
This commit is contained in:
parent
67f6b668bd
commit
e2925cde68
@ -26,4 +26,10 @@ If persistence is enabled, RTC time is also used in conjuction with system time.
|
||||
|
||||
4. RTC time (`esp_rtc_get_time_us`)
|
||||
|
||||
Time read from RTC timer.
|
||||
Time read from RTC timer.
|
||||
|
||||
### Brownout
|
||||
|
||||
on some boards, we name BOD1 as ana_bod, to unify the usage, using BOD1 in following passage.
|
||||
|
||||
BOD1 will be a little faster then BOD0, but BOD0 can be widely used(can reset rf, flash, or using interrupt, etc.) So, in IDF code, we use BOD1 in bootloader and BOD0 in the app.
|
||||
|
@ -24,6 +24,8 @@ void brownout_hal_config(const brownout_hal_config_t *cfg)
|
||||
.ena = cfg->enabled,
|
||||
.rst_sel = 1,
|
||||
};
|
||||
// If brownout software control is enabled, hw ana reset should be disabled, because it always has the highest priority.
|
||||
RTCCNTL.brown_out.ana_rst_en = false;
|
||||
RTCCNTL.brown_out = brown_out_reg;
|
||||
}
|
||||
|
||||
|
@ -23,6 +23,8 @@ void brownout_hal_config(const brownout_hal_config_t *cfg)
|
||||
.ena = cfg->enabled,
|
||||
.rst_sel = 1,
|
||||
};
|
||||
// If brownout software control is enabled, hw ana reset should be disabled, because it always has the highest priority.
|
||||
RTCCNTL.brown_out.ana_rst_en = false;
|
||||
RTCCNTL.brown_out = brown_out_reg;
|
||||
}
|
||||
|
||||
|
@ -25,6 +25,8 @@ void brownout_hal_config(const brownout_hal_config_t *cfg)
|
||||
.ena = cfg->enabled,
|
||||
.rst_sel = 1,
|
||||
};
|
||||
// If brownout software control is enabled, hw ana reset should be disabled, because it always has the highest priority.
|
||||
RTCCNTL.brown_out.ana_rst_en = false;
|
||||
RTCCNTL.brown_out = brown_out_reg;
|
||||
}
|
||||
|
||||
|
@ -25,6 +25,8 @@ void brownout_hal_config(const brownout_hal_config_t *cfg)
|
||||
.ena = cfg->enabled,
|
||||
.rst_sel = 1,
|
||||
};
|
||||
// If brownout software control is enabled, hw ana reset should be disabled, because it always has the highest priority.
|
||||
RTCCNTL.brown_out.ana_rst_en = false;
|
||||
RTCCNTL.brown_out = brown_out_reg;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user