Paparazzi UAS  v4.0.4_stable-3-gf39211a
Paparazzi is a free software Unmanned Aircraft System.
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
sys_time_arch.h File Reference

Simulator timing functions. More...

#include "std.h"
+ Include dependency graph for sys_time_arch.h:

Go to the source code of this file.

Macros

#define CPU_TICKS_OF_SEC(s)   (uint32_t)((s) * 1e6 + 0.5)
 
#define SIGNED_CPU_TICKS_OF_SEC(s)   (int32_t)((s) * 1e6 + 0.5)
 
#define SEC_OF_CPU_TICKS(t)   ((t) / 1e6)
 
#define MSEC_OF_CPU_TICKS(t)   ((t) / 1e3)
 
#define USEC_OF_CPU_TICKS(t)   (t)
 
#define SysTimeTimerStart(_t)   { }
 
#define SysTimeTimer(_t)   (_t)
 
#define SysTimeTimerStop(_t)   { }
 

Functions

void sys_tick_handler (void)
 
static void sys_time_usleep (uint32_t us __attribute__((unused)))
 

Detailed Description

Simulator timing functions.

Definition in file sys_time_arch.h.

Macro Definition Documentation

#define CPU_TICKS_OF_SEC (   s)    (uint32_t)((s) * 1e6 + 0.5)

Definition at line 36 of file sys_time_arch.h.

#define MSEC_OF_CPU_TICKS (   t)    ((t) / 1e3)

Definition at line 40 of file sys_time_arch.h.

#define SEC_OF_CPU_TICKS (   t)    ((t) / 1e6)

Definition at line 39 of file sys_time_arch.h.

#define SIGNED_CPU_TICKS_OF_SEC (   s)    (int32_t)((s) * 1e6 + 0.5)

Definition at line 37 of file sys_time_arch.h.

#define SysTimeTimer (   _t)    (_t)

Definition at line 44 of file sys_time_arch.h.

#define SysTimeTimerStart (   _t)    { }

Definition at line 43 of file sys_time_arch.h.

#define SysTimeTimerStop (   _t)    { }

Definition at line 45 of file sys_time_arch.h.

#define USEC_OF_CPU_TICKS (   t)    (t)

Definition at line 41 of file sys_time_arch.h.

Function Documentation

static void sys_time_usleep ( uint32_t us   __attribute__(unused))
inlinestatic

Definition at line 48 of file sys_time_arch.h.