AnsweredAssumed Answered

Is there an equivalent of FreeRTOS "xTimerReset" for MQX?

Question asked by Manuel Malagon on Jun 18, 2019
Latest reply on Jun 19, 2019 by Daniel Chen

I need to port a module from FREERTOS to MQX and it uses a couple of timers. In this module's logic, sometimes the timer shall be reset and start counting from the beginning before it expires. For that purpose, the module is using the xTimerReset Freertos API. Looking through the MQX documentation I can't find any functions that include "reset" in its name.

 

I see that there is a "_timer_cancel" function but the documentation is not clear about what this function does and I haven't found any examples about how to implement the restart behavior.

 

Does anyone know how to achieve this? Am I supposed to call _timer_cancel followed by one of the _timer_start_ APIs?

Outcomes