Hello forum users,
can anybody advise how to assign task tag to timer task? Is I understand it is a task just as any other. I need it only for RTOS aware debugger.
rum
Hello forum users,
can anybody advise how to assign task tag to timer task? Is I understand it is a task just as any other. I need it only for RTOS aware debugger.
rum
Use this API to get timer task handle - FreeRTOS-Kernel/timers.h at main · FreeRTOS/FreeRTOS-Kernel · GitHub
And then use this API to set the tag - FreeRTOS-Kernel/task.h at main · FreeRTOS/FreeRTOS-Kernel · GitHub
Thanks.
One comment… xTimerGetTimerDaemonTaskHandle returns handle only after scheduler has started! For other tasks I assign tag when the task is created and that is before scheduler start.
The timer daemon is only created when you start the scheduler.