panic: handlers can now be placed in flash

By unchecking "Place panic handler code in IRAM" in the menuconfig,
the panic handlers will be placed in flash. Of course, flash cache must
be activated when entering panic handlers.
This commit is contained in:
Omar Chebib
2021-04-15 11:58:46 +08:00
parent d14661eaa3
commit bb9aa806f7
7 changed files with 32 additions and 23 deletions
@@ -113,7 +113,7 @@ esp_reset_reason_t IRAM_ATTR esp_reset_reason_get_hint(void)
}
return (esp_reset_reason_t) low;
}
static void esp_reset_reason_clear_hint(void)
static inline void esp_reset_reason_clear_hint(void)
{
REG_WRITE(RTC_RESET_CAUSE_REG, 0);
}