[][src]Function mynewt::kernel::os::os_cputime_init

pub unsafe extern "C" fn os_cputime_init(clock_freq: u32) -> c_int

Initialize the cputime module. This must be called after os_init is called and before any other timer API are used. This should be called only once and should be called before the hardware timer is used.

Return: int 0 on success; -1 on error.