Skip to content

Commit e475b43

Browse files
joelguittethenrikbrixandersen
authored andcommitted
documentation: detail k_timer_start period update to be updated
k_timer_start is not updating the period of the timer if the duration is K_FOREVER. Signed-off-by: Joel Guittet <[email protected]>
1 parent 304194e commit e475b43

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

include/zephyr/kernel.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1741,6 +1741,9 @@ void k_timer_init(struct k_timer *timer,
17411741
* The timer's status is reset to zero and the timer begins counting down
17421742
* using the new duration and period values.
17431743
*
1744+
* This routine neither updates nor has any other effect on the specified
1745+
* timer if @a duration is K_FOREVER.
1746+
*
17441747
* @param timer Address of timer.
17451748
* @param duration Initial timer duration.
17461749
* @param period Timer period.

0 commit comments

Comments
 (0)