|
Paparazzi UAS
v5.18.0_stable
Paparazzi is a free software Unmanned Aircraft System.
|
Go to the documentation of this file.
32 #ifndef SYS_TIME_ARCH_H
33 #define SYS_TIME_ARCH_H
37 #include <libopencm3/stm32/gpio.h>
38 #include <libopencm3/stm32/rcc.h>
39 #include <libopencm3/cm3/systick.h>
74 uint32_t start = systick_get_value();
88 end = systick_get_reload() - rem + start;
92 while (!systick_get_countflag());
96 while (systick_get_value() > end);
static uint32_t cpu_ticks_of_usec(uint32_t usec)
void sys_time_usleep(uint32_t us)
sys_time_usleep(uint32_t us)
static uint32_t usec_of_cpu_ticks(uint32_t cpu_ticks)
uint32_t get_sys_time_usec(void)
Get the time in microseconds since startup.
Architecture independent timing functions.
uint32_t get_sys_time_msec(void)
Get the time in milliseconds since startup.
static uint32_t msec_of_cpu_ticks(uint32_t cpu_ticks)
volatile uint32_t nb_sec_rem
remainder of seconds since startup in CPU_TICKS
volatile uint32_t nb_sec
full seconds since startup