Add esp_timer_is_active function for Nimble stack to use esp_timer instead of FreeRTOS timer

This commit is contained in:
Rahul Tank
2021-06-30 14:51:51 +05:30
parent c836cef1a5
commit f1adfaaced
5 changed files with 32 additions and 1 deletions

View File

@@ -530,3 +530,8 @@ uint32_t IRAM_ATTR esp_system_get_time_resolution(void)
return 1000;
}
#endif
bool esp_timer_is_active(esp_timer_handle_t timer)
{
return timer_armed(timer);
}