[][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.

Return: int 0 on success; EINVAL if timer already started or timer struct invalid