zephyr::raw

Function k_timer_init

source
pub unsafe extern "C" fn k_timer_init(
    timer: *mut k_timer,
    expiry_fn: Option<unsafe extern "C" fn(_: *mut k_timer)>,
    stop_fn: Option<unsafe extern "C" fn(_: *mut k_timer)>,
)
Expand description

@brief Initialize a timer.

This routine initializes a timer, prior to its first use.

@param timer Address of timer. @param expiry_fn Function to invoke each time the timer expires. @param stop_fn Function to invoke if the timer is stopped while running.