AnsweredAssumed Answered

MKW30Z TimersManager stop (pause) timer

Question asked by Lucian Firan on Mar 16, 2017
Latest reply on Apr 5, 2017 by Jorge Antonio Alcala Vazquez

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

Outcomes