zephyr::raw

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.

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