31#include "mcu_periph/sys_time_arch.h"
33#include "libopencm3/cm3/systick.h"
39#ifndef USE_OCM3_SYSTICK_INIT
40#define USE_OCM3_SYSTICK_INIT 1
51#if USE_OCM3_SYSTICK_INIT
59#if USE_OCM3_SYSTICK_INIT
void sys_time_msleep(uint32_t ms)
Sleep.
static void sys_tick_handler(void)
void sys_time_usleep(uint32_t us)
sys_time_usleep(uint32_t us)
void sys_time_arch_init(void)
arch independent LED (Light Emitting Diodes) API
Architecture independent timing functions.
volatile uint32_t nb_tick
SYS_TIME_TICKS since startup.
volatile uint32_t nb_sec
full seconds since startup
uint32_t cpu_ticks_per_sec
cpu ticks per second
uint32_t duration
in SYS_TIME_TICKS
uint32_t resolution_cpu_ticks
sys_time_timer resolution in cpu ticks
volatile uint32_t nb_sec_rem
remainder of seconds since startup in CPU_TICKS
float resolution
sys_time_timer resolution in seconds
static uint32_t cpu_ticks_of_usec(uint32_t usec)
#define SYS_TIME_NB_TIMER
uint32_t end_time
in SYS_TIME_TICKS
struct sys_time_timer timer[SYS_TIME_NB_TIMER]
static uint32_t usec_of_cpu_ticks(uint32_t cpu_ticks)
unsigned int uint32_t
Typedef defining 32 bit unsigned int type.