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:
Konstantin Kondrashov
2019-01-10 20:17:04 +08:00
parent 65d01336d3
commit 82c5e648ad
3 changed files with 15 additions and 2 deletions

View File

@@ -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();