I want to get the task handle for the timer daemon task.
There is a FreeRTOS function: xTimerGetTimerDaemonTaskHandle
However, it is disabled in FreeRTOSConfig.h (INCLUDE_xTimerGetTimerDaemonTaskHandle is 0) with the comment:
"Currently there is no need for this API"
Is there another API or easy way to get the timer task handle? I'd prefer not to hack/patch the ESP-IDF source to enable this function.
How to get timer task handle
-
- Posts: 10
- Joined: Tue May 16, 2023 7:02 pm
Re: How to get timer task handle
The task name is "Tmr Svc". Just use the following API in "task.h":
Code: Select all
TaskHandle_t xTaskGetHandle( const char * pcNameToQuery )
-
- Posts: 64
- Joined: Thu Mar 18, 2021 12:23 am
Re: How to get timer task handle
Thanks - That works well.
Who is online
Users browsing this forum: No registered users and 444 guests