[−][src]Function mynewt::kernel::os::os_cputime_timer_relative
pub unsafe extern "C" fn os_cputime_timer_relative(
timer: *mut hal_timer,
usecs: u32
) -> c_int
Sets a cpu timer that will expire 'usecs' microseconds from the current cputime.
NOTE: This must be called when the timer is stopped.
timer
: Pointer to timer. Cannot be NULL.usecs
: The number of usecs from now at which the timer will expire.
Return: int 0 on success; EINVAL if timer already started or timer struct invalid