mirror of
https://github.com/espressif/esp-idf.git
synced 2025-09-30 19:19:21 +00:00
esp32: Fix wdt settings in esp_restart_noos
Fixed compatibility the new apps with the old bootloaders. Closes: https://github.com/espressif/esp-idf/issues/2927
This commit is contained in:
@@ -38,6 +38,11 @@ void rtc_wdt_enable()
|
||||
SET_PERI_REG_MASK(RTC_CNTL_WDTCONFIG0_REG, RTC_CNTL_WDT_EN | RTC_CNTL_WDT_PAUSE_IN_SLP);
|
||||
}
|
||||
|
||||
void rtc_wdt_flashboot_mode_enable()
|
||||
{
|
||||
REG_SET_BIT(RTC_CNTL_WDTCONFIG0_REG, RTC_CNTL_WDT_FLASHBOOT_MOD_EN);
|
||||
}
|
||||
|
||||
void rtc_wdt_disable()
|
||||
{
|
||||
bool protect = rtc_wdt_get_protect_status();
|
||||
|
Reference in New Issue
Block a user