Paparazzi UAS  v5.8.2_stable-0-g6260b7c
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
#include "mcu_periph/sys_time.h"
#include <stdio.h>
#include <pthread.h>
#include <sys/timerfd.h>
#include <time.h>
#include "rt_priority.h"
+ Include dependency graph for sys_time_arch.c:

Go to the source code of this file.

Macros

#define SYS_TIME_THREAD_PRIO   29
 
#define NSEC_OF_SEC(sec)   ((sec) * 1e9)
 

Functions

static void sys_tick_handler (void)
 
void * sys_time_thread_main (void *data)
 
void sys_time_arch_init (void)
 

Variables

pthread_t sys_time_thread
 
static struct timespec startup_time
 

Macro Definition Documentation

#define NSEC_OF_SEC (   sec)    ((sec) * 1e9)

Definition at line 48 of file sys_time_arch.c.

Referenced by sys_time_thread_main().

#define SYS_TIME_THREAD_PRIO   29

Definition at line 39 of file sys_time_arch.c.

Referenced by sys_time_thread_main().

Function Documentation

static void sys_tick_handler ( void  )
static
void sys_time_arch_init ( void  )

Definition at line 94 of file sys_time_arch.c.

Referenced by sys_time_init().

+ Here is the caller graph for this function:

void * sys_time_thread_main ( void *  data)

Definition at line 50 of file sys_time_arch.c.

References fd, get_rt_prio(), NSEC_OF_SEC, sys_time::resolution, sys_tick_handler(), and SYS_TIME_THREAD_PRIO.

Referenced by sys_time_arch_init().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Variable Documentation

struct timespec startup_time
static

Definition at line 43 of file sys_time_arch.c.

Referenced by sys_tick_handler(), and sys_time_arch_init().

pthread_t sys_time_thread

Definition at line 42 of file sys_time_arch.c.

Referenced by sys_time_arch_init().