Paparazzi UAS  v4.2.2_stable-4-gcc32f65
Paparazzi is a free software Unmanned Aircraft System.
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
ppm_arch.h File Reference
+ Include dependency graph for ppm_arch.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define RC_PPM_TICKS_OF_USEC(_v)   CPU_TICKS_OF_USEC((_v)/9)
 On tiny (and booz) the ppm counter is running at the same speed as the systic counter. More...
 
#define RC_PPM_SIGNED_TICKS_OF_USEC(_v)   SIGNED_CPU_TICKS_OF_USEC((_v)/9)
 
#define USEC_OF_RC_PPM_TICKS(_v)   USEC_OF_CPU_TICKS((_v)*9)
 
#define PPM_NB_CHANNEL   RADIO_CONTROL_NB_CHANNEL
 

Macro Definition Documentation

#define PPM_NB_CHANNEL   RADIO_CONTROL_NB_CHANNEL

Definition at line 44 of file ppm_arch.h.

#define RC_PPM_SIGNED_TICKS_OF_USEC (   _v)    SIGNED_CPU_TICKS_OF_USEC((_v)/9)

Definition at line 41 of file ppm_arch.h.

#define RC_PPM_TICKS_OF_USEC (   _v)    CPU_TICKS_OF_USEC((_v)/9)

On tiny (and booz) the ppm counter is running at the same speed as the systic counter.

There is no reason for this to be true. Let's add a pair of macros to make it possible for them to be different.

Definition at line 40 of file ppm_arch.h.

#define USEC_OF_RC_PPM_TICKS (   _v)    USEC_OF_CPU_TICKS((_v)*9)

Definition at line 42 of file ppm_arch.h.