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
ppm_arch.h File Reference
#include "LPC21xx.h"
#include <BOARD_CONFIG>
#include "mcu_periph/sys_time.h"
+ Include dependency graph for ppm_arch.h:

Go to the source code of this file.

Macros

#define RC_PPM_TICKS_OF_USEC(_v)   cpu_ticks_of_usec(_v)
 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)
 
#define USEC_OF_RC_PPM_TICKS(_v)   usec_of_cpu_ticks(_v)
 
#define PPM_NB_CHANNEL   RADIO_CONTROL_NB_CHANNEL
 
#define PPM_IT   PPM_CRI
 
#define PPM_ISR()
 

Macro Definition Documentation

#define PPM_ISR ( )
Value:
{ \
}
#define PPM_CR
Definition: booz_1.0.h:70
unsigned long uint32_t
Definition: types.h:18
#define DecodePpmFrame(_ppm_time)
A valid ppm frame:
Definition: ppm.h:97

Definition at line 45 of file ppm_arch.h.

Referenced by TIMER0_ISR().

#define PPM_IT   PPM_CRI

Definition at line 43 of file ppm_arch.h.

#define PPM_NB_CHANNEL   RADIO_CONTROL_NB_CHANNEL

Definition at line 41 of file ppm_arch.h.

#define RC_PPM_SIGNED_TICKS_OF_USEC (   _v)    signed_cpu_ticks_of_usec(_v)

Definition at line 38 of file ppm_arch.h.

#define RC_PPM_TICKS_OF_USEC (   _v)    cpu_ticks_of_usec(_v)

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 37 of file ppm_arch.h.

#define USEC_OF_RC_PPM_TICKS (   _v)    usec_of_cpu_ticks(_v)

Definition at line 39 of file ppm_arch.h.