32 #include "libopencm3/cm3/systick.h"
38 #ifndef USE_OCM3_SYSTICK_INIT
39 #define USE_OCM3_SYSTICK_INIT 1
50 #if USE_OCM3_SYSTICK_INIT
51 systick_set_clocksource(STK_CSR_CLKSOURCE_AHB);
58 #if USE_OCM3_SYSTICK_INIT
64 systick_interrupt_enable();
65 systick_counter_enable();
void sys_tick_handler(void)
float resolution
sys_time_timer resolution in seconds
uint32_t cpu_ticks_per_sec
cpu ticks per second
volatile uint32_t nb_tick
SYS_TIME_TICKS since startup.
Architecture independent timing functions.
uint32_t end_time
in SYS_TIME_TICKS
volatile uint32_t nb_sec_rem
remainder of seconds since startup in CPU_TICKS
struct sys_time_timer timer[SYS_TIME_NB_TIMER]
volatile uint32_t nb_sec
full seconds since startup
arch independent LED (Light Emitting Diodes) API
#define SYS_TIME_NB_TIMER
uint32_t duration
in SYS_TIME_TICKS
void sys_time_arch_init(void)
uint32_t resolution_cpu_ticks
sys_time_timer resolution in cpu ticks