kopia lustrzana https://github.com/espressif/esp-idf
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/10859pull/11334/head
rodzic
c49e8d3611
commit
745cac7a04
|
@ -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);
|
||||
}
|
||||
|
|
Ładowanie…
Reference in New Issue