In my application, I need a FreeRTOS software timer. But this timer sometimes need the one-shot timer function, sometimes need the Reload timer function.
I use the xTimerCreate to create timer with the one-shot timer configuration. Next time, I need to config this timer as the Reload timer with a new timePeriod. But from the FreeRTOS API function, I could change the reload/one-shot directly. Also has no API to get to know the timer is a Reload/one-shot timer, need a seperate parameter to maintain.
The only way to achieve my function is to delete the origianl timer and create a timer again.
Could you help if there is a good method to achieve my functions, it will be better if can use existing API directluy.