I’m using ver 7.0.0. And really like the new timer addition. Is there a way to directly suspend the timer task? Presently I test a ‘flag’ in the top of each timer callback function. And if the flag is set will call vTaskSuspend(NULL). Thereby suspending the timer task. I wonder if there is an alternative way?
If you’re interested why I would want to do this read below (and feel free to comment on of course) :
In my project I sense an impending power fail with an interrupt. And signal the highest priority task in the system of such. The high priority task suspends all tasks except for one in particular. I do this by recording all task handles as they are created. And then calling vTaskSuspend and one by one suspending all the tasks except the high priority powerfail task and the one. The one task I want to keep alive happens to manage a flash file system which can gracefully exit what it is doing once it knows of the impending powerfail. There is enough time to do this - like 30ms. However the application most surely has some timers active. And their callback code is getting called. And I want it all to stop.
Any coments welcome.