mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-10 04:43:33 +00:00
Add esp_timer_is_active function for Nimble stack to use esp_timer instead of FreeRTOS timer
This commit is contained in:
@@ -242,6 +242,18 @@ esp_err_t esp_timer_dump(FILE* stream);
|
||||
void esp_timer_isr_dispatch_need_yield(void);
|
||||
#endif // CONFIG_ESP_TIMER_SUPPORTS_ISR_DISPATCH_METHOD
|
||||
|
||||
/**
|
||||
* @brief Returns status of a timer, active or not
|
||||
*
|
||||
* This function is used to identify if the timer is still active or not.
|
||||
*
|
||||
* @param timer timer handle created using esp_timer_create
|
||||
* @return
|
||||
* - 1 if timer is still active
|
||||
* - 0 if timer is not active.
|
||||
*/
|
||||
bool esp_timer_is_active(esp_timer_handle_t timer);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user