esp_timer: Adds IRAM_ATTR for esp_timer_restart and esp_timer_is_active

Closes https://github.com/espressif/esp-idf/issues/10522
Closes https://github.com/espressif/esp-idf/issues/10859
This commit is contained in:
KonstantinKondrashov 2023-03-01 19:54:38 +08:00
parent c49e8d3611
commit 745cac7a04

View File

@ -621,7 +621,10 @@ int64_t IRAM_ATTR esp_timer_get_next_alarm_for_wake_up(void)
return next_alarm;
}
bool esp_timer_is_active(esp_timer_handle_t timer)
bool IRAM_ATTR esp_timer_is_active(esp_timer_handle_t timer)
{
if (timer == NULL) {
return false;
}
return timer_armed(timer);
}