Paparazzi UAS  v5.0.5_stable-7-g4b8bbb7
Paparazzi is a free software Unmanned Aircraft System.
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
sys_time_arch.h File Reference

omap timing functions More...

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

Go to the source code of this file.

Macros

#define SysTimeTimerStart(_t)   { _t = get_sys_time_usec(); }
 
#define SysTimeTimer(_t)   ( get_sys_time_usec() - (_t))
 
#define SysTimeTimerStop(_t)   { _t = ( get_sys_time_usec() - (_t)); }
 

Functions

void sys_tick_handler (int signum)
 
static uint32_t get_sys_time_usec (void)
 Get the time in microseconds since startup. More...
 
static void sys_time_usleep (uint32_t us)
 

Detailed Description

omap timing functions

Definition in file sys_time_arch.h.

Macro Definition Documentation

#define SysTimeTimer (   _t)    ( get_sys_time_usec() - (_t))

Definition at line 47 of file sys_time_arch.h.

#define SysTimeTimerStart (   _t)    { _t = get_sys_time_usec(); }

Definition at line 46 of file sys_time_arch.h.

#define SysTimeTimerStop (   _t)    { _t = ( get_sys_time_usec() - (_t)); }

Definition at line 48 of file sys_time_arch.h.

Function Documentation

static uint32_t get_sys_time_usec ( void  )
inlinestatic

Get the time in microseconds since startup.

WARNING: overflows after 71min34seconds!

Returns
current system time as uint32_t

Definition at line 40 of file sys_time_arch.h.

References sys_time::nb_sec, sys_time::nb_sec_rem, and usec_of_cpu_ticks().

+ Here is the call graph for this function:

static void sys_time_usleep ( uint32_t  us)
inlinestatic

Definition at line 50 of file sys_time_arch.h.