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
pull/11334/head
KonstantinKondrashov 2023-03-01 19:54:38 +08:00
rodzic c49e8d3611
commit 745cac7a04
1 zmienionych plików z 4 dodań i 1 usunięć

Wyświetl plik

@ -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);
}