mirror of
https://github.com/espressif/esp-idf.git
synced 2025-07-30 18:57:19 +02:00
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:
@ -621,7 +621,10 @@ int64_t IRAM_ATTR esp_timer_get_next_alarm_for_wake_up(void)
|
|||||||
return next_alarm;
|
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);
|
return timer_armed(timer);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user