zephyr::raw

Function k_timer_stop

source
pub unsafe extern "C" fn k_timer_stop(timer: *mut k_timer)
Expand description

@brief Stop a timer.

This routine stops a running timer prematurely. The timer’s stop function, if one exists, is invoked by the caller.

Attempting to stop a timer that is not running is permitted, but has no effect on the timer.

@note The stop handler has to be callable from ISRs if @a k_timer_stop is to be called from ISRs.

@funcprops \isr_ok

@param timer Address of timer.