Hello,
I have a question on how to restart a basic timer correctly (I have ran into weird behavior).
If I configure Timer A in "One-shot Down Counting" mode and enable "Zero event" interrupt to get
a callback every time it expires, should I manually stop the counter before restarting the timer ?
So basically which one of the two is correct ?
Option 1:
DL_TimerA_stopCounter(TIMER_0_INST);
DL_TimerA_setLoadValue(TIMER_0_INST, timeout_ms * TIMER_CLK_FREQ_kHz);
DL_TimerA_startCounter(TIMER_0_INST);
Option 2:
DL_TimerA_setLoadValue(TIMER_0_INST, timeout_ms * TIMER_CLK_FREQ_kHz);
DL_TimerA_startCounter(TIMER_0_INST);
Thanks,
Mykola