esp-system: move uncessary IRAM functions to flash

This commit is contained in:
Marius Vikhammer
2023-04-10 11:10:28 +08:00
parent d0a29ada57
commit db059b155a
18 changed files with 34 additions and 59 deletions
@@ -72,7 +72,7 @@ void esp_cache_err_int_init(void)
ESP_INTR_ENABLE(ETS_CACHEERR_INUM);
}
int IRAM_ATTR esp_cache_err_get_cpuid(void)
int esp_cache_err_get_cpuid(void)
{
return 0;
}
@@ -97,7 +97,7 @@ void IRAM_ATTR esp_reset_reason_set_hint(esp_reset_reason_t hint)
}
/* in IRAM, can be called from panic handler */
esp_reset_reason_t IRAM_ATTR esp_reset_reason_get_hint(void)
esp_reset_reason_t esp_reset_reason_get_hint(void)
{
uint32_t reset_reason_hint = REG_READ(RTC_RESET_CAUSE_REG);
uint32_t high = (reset_reason_hint >> RST_REASON_SHIFT) & RST_REASON_MASK;