KW40Z_Connectivity_Software_1.0.1 (KSDK_1.3.0); IAR 7.50
framework/TimersManager/Interface/TimersManager.h
First case:
TMR_StartSingleShotTimer(id, timeInMilliseconds, pCall, pArg);
a = TMR_GetRemainingTime(id);
TMR_StopTimer(id);
b = TMR_GetRemainingTime(id);
I would expect that the result b is 0 but it's not the case.
(like ~ pause timer)
Trying to stop a timer starting it with 0 (zero) milliseconds:
TMR_StartSingleShotTimer(id, timeInMilliseconds, pCall, pArg);
TMR_StartSingleShotTimer(id, 0, pCall, pArg);
setting to zero act as calling pCall once and stop the timer.
Best Regards,
Lucian