jacwit wrote on Tuesday, March 20, 2012:
Hi Everyone-
Is it acceptable to use xTimerReset() inside the timer’s callback function?
Before I start the scheduler, I create a timer with xAutoReload set to pdFALSE.
then I set it active using xTimerStart(). I check all the return codes to make sure
pdTRUE.
Inside the timer’s callback function, I use xTimerReset() to reload the timer.
It works but then the OS just hangs up. If I comment out the xTimerReset() code, it works fine with no issues.
Is this a bug or is this not allowed? Could i reset another timer using xTimerReset() inside a timer callback?
Thanks,
Jon