Paparazzi UAS  v5.14.0_stable-0-g3f680d1
Paparazzi is a free software Unmanned Aircraft System.
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
sys_time_arch.c File Reference

STM32 timing functions. More...

#include "mcu_periph/sys_time.h"
#include "libopencm3/cm3/systick.h"
+ Include dependency graph for sys_time_arch.c:

Go to the source code of this file.

Macros

#define USE_OCM3_SYSTICK_INIT   1
 

Functions

void sys_tick_handler (void)
 
void sys_time_arch_init (void)
 Initialize SysTick. More...
 

Detailed Description

STM32 timing functions.

Definition in file sys_time_arch.c.

Macro Definition Documentation

#define USE_OCM3_SYSTICK_INIT   1

Definition at line 39 of file sys_time_arch.c.

Function Documentation

void sys_time_arch_init ( void  )

Initialize SysTick.

Generate SysTick interrupt every sys_time.resolution_cpu_ticks

Definition at line 47 of file sys_time_arch.c.

References AHB_CLK, CH_CFG_ST_FREQUENCY, sys_time::cpu_ticks_per_sec, sys_time::resolution, sys_time::resolution_cpu_ticks, and thd_sys_tick().

+ Here is the call graph for this function: