Skip to content

Commit

Permalink
esp_timer: Adds IRAM_ATTR for esp_timer_restart and esp_timer_is_active
Browse files Browse the repository at this point in the history
Closes #10522
Closes #10859
  • Loading branch information
KonstantinKondrashov committed Apr 20, 2023
1 parent c49e8d3 commit 745cac7
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion components/esp_timer/src/esp_timer.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

0 comments on commit 745cac7

Please sign in to comment.