Skip to content

Commit

Permalink
Merge branch 'bugfix/adds_iram_attr_for_some_esp_timer_apis_v4.4' int…
Browse files Browse the repository at this point in the history
…o 'release/v4.4'

esp_timer: Adds IRAM_ATTR for esp_timer_restart and esp_timer_is_active (v4.4)

See merge request espressif/esp-idf!23308
  • Loading branch information
Zim Kalinowski committed Apr 20, 2023
2 parents 39afb1e + 745cac7 commit 4232e24
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 4232e24

Please sign in to comment.