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_time_arch_init(void)
arch independent LED (Light Emitting Diodes) API
void sys_tick_handler(void)
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
#define SYS_TIME_NB_TIMER
uint32_t end_time
in SYS_TIME_TICKS
struct sys_time_timer timer[SYS_TIME_NB_TIMER]
unsigned int uint32_t
Typedef defining 32 bit unsigned int type.