Merge branch 'contrib/github_pr_11204' into 'master'

Fix function signature in flash suspend example (GitHub PR)

Closes IDFGH-9888

See merge request espressif/esp-idf!23254
This commit is contained in:
Ivan Grokhotkov
2023-05-02 17:09:57 +08:00

View File

@@ -51,7 +51,7 @@ static NOINLINE_ATTR void s_function_in_flash(void)
s_flash_func_t2 = esp_cpu_get_cycle_count(); s_flash_func_t2 = esp_cpu_get_cycle_count();
} }
static IRAM_ATTR NOINLINE_ATTR void s_funtion_in_iram(void) static IRAM_ATTR NOINLINE_ATTR void s_function_in_iram(void)
{ {
/** /**
* - Here we will have few instructions in .iram0.text * - Here we will have few instructions in .iram0.text
@@ -72,7 +72,7 @@ static bool IRAM_ATTR on_gptimer_alarm_cb(gptimer_handle_t timer, const gptimer_
if (is_flash) { if (is_flash) {
s_function_in_flash(); s_function_in_flash();
} else { } else {
s_funtion_in_iram(); s_function_in_iram();
} }
return false; return false;