Function riot_sys::timer_set

source ·
pub unsafe extern "C" fn timer_set(
    dev: tim_t,
    channel: c_int,
    timeout: c_uint
) -> c_int
Expand description

@brief Set a given timer channel for the given timer device

The callback given during initialization is called when timeout ticks have passed after calling this function

@param[in] dev the timer device to set @param[in] channel the channel to set @param[in] timeout timeout in ticks after that the registered callback is executed

@return 0 on success @return -1 on error