[TIMER] k_timer_start should take 0 value for duration parameter #3928
Labels
area: Kernel
Enhancement
Changes/Updates/Additions to existing features
priority: medium
Medium impact/importance bug
Milestone
Reported by Youvedeep Singh:
As per Spec :-
k_timer_start(&timer, DURATION, PERIOD);
DURATION:- "A duration specifying the time interval before the timer expires for the first time, measured in milliseconds. It must be greater than zero."
(source : http://zephyr-docs.s3-website-us-east-1.amazonaws.com/online/dev/kernel/timing/timers.html)
So minimum value programmable should be NON Zero positive value. Also Timer should be programmed with value equal to value programmed by user without any extra addition.
Also currently while programming the timer we are providing one TICK extra due to _ALIGN_TICK. So it should be removed.
(Imported from Jira ZEP-2497)
The text was updated successfully, but these errors were encountered: