refactor(esp_timer): Remove duplicate code and move it to a common file

This commit is contained in:
KonstantinKondrashov
2023-07-12 00:50:09 +08:00
parent 41dc26f5bd
commit 453e0c784d
7 changed files with 89 additions and 116 deletions

View File

@@ -489,6 +489,7 @@ static void IRAM_ATTR timer_alarm_handler(void* arg)
bool isr_timers_processed = false;
#ifdef CONFIG_ESP_TIMER_SUPPORTS_ISR_DISPATCH_METHOD
esp_timer_impl_try_to_set_next_alarm();
// process timers with ISR dispatch method
isr_timers_processed = timer_process_alarm(ESP_TIMER_ISR);
xHigherPriorityTaskWoken = s_isr_dispatch_need_yield;