Paparazzi UAS
v5.10_stable-5-g83a0da5-dirty
Paparazzi is a free software Unmanned Aircraft System.
|
#include "mcu_periph/sys_time.h"
#include <stdio.h>
#include <pthread.h>
#include <sys/timerfd.h>
#include <time.h>
#include "rt_priority.h"
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 |
#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().
|
static |
Definition at line 108 of file sys_time_arch.c.
References sys_time_timer::cb, cpu_ticks_of_nsec(), sys_time_timer::duration, sys_time_timer::elapsed, sys_time_timer::end_time, sys_time_timer::in_use, LED_TOGGLE, sys_time::nb_sec, sys_time::nb_sec_rem, sys_time::nb_tick, startup_time, SYS_TIME_NB_TIMER, sys_time_ticks_of_sec(), sys_time_ticks_of_usec(), and sys_time::timer.
Referenced by sys_time_thread_main().
void sys_time_arch_init | ( | void | ) |
Definition at line 94 of file sys_time_arch.c.
References sys_time::cpu_ticks_per_sec, sys_time::resolution, sys_time::resolution_cpu_ticks, startup_time, sys_time_thread, and sys_time_thread_main().
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().
|
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().