replacing reset by register operations with ROM interfaces to decouple the effects of register name changes

This commit is contained in:
wuzhenghui
2022-08-29 11:55:35 +08:00
committed by morris
parent 88c123f805
commit 82ffe7e438
3 changed files with 6 additions and 6 deletions

View File

@@ -14,6 +14,7 @@
#include "soc/rtc_cntl_reg.h"
#include "esp_private/panic_internal.h"
#include "esp_rom_uart.h"
#include "esp_rom_sys.h"
#if CONFIG_ESP_SYSTEM_MEMPROT_FEATURE
#if CONFIG_IDF_TARGET_ESP32S2
#include "esp32s2/memprot.h"
@@ -42,7 +43,7 @@ void IRAM_ATTR esp_restart_noos_dig(void)
esp_cpu_unstall(PRO_CPU_NUM);
#endif
// reset the digital part
SET_PERI_REG_MASK(RTC_CNTL_OPTIONS0_REG, RTC_CNTL_SW_SYS_RST);
esp_rom_software_reset_system();
while (true) {
;
}