k_timer_start

Function k_timer_start 

Source
pub unsafe extern "C" fn k_timer_start(
    timer: *mut k_timer,
    duration: k_timeout_t,
    period: k_timeout_t,
)
Expand description

@brief Start a timer.

This routine starts a timer, and resets its status to zero. The timer begins counting down using the specified duration and period values.

Attempting to start a timer that is already running is permitted. The timer’s status is reset to zero and the timer begins counting down using the new duration and period values.

This routine neither updates nor has any other effect on the specified timer if @a duration is K_FOREVER.

@param timer Address of timer. @param duration Initial timer duration. @param period Timer period.