Paparazzi UAS  v5.15_devel-187-g731cc33
Paparazzi is a free software Unmanned Aircraft System.
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
ppm_arch.h File Reference

LPC21xx ppm decoder. More...

#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_IT   PPM_CRI
 
#define PPM_ISR()
 

Detailed Description

LPC21xx ppm decoder.

Definition in file ppm_arch.h.

Macro Definition Documentation

#define PPM_ISR ( )
Value:
{ \
}
#define PPM_CR
Definition: booz_1.0.h:57
unsigned long uint32_t
Definition: types.h:18
void ppm_decode_frame(uint32_t ppm_time)
Decode a PPM frame from global timer value.
Definition: ppm.c:99

Definition at line 49 of file ppm_arch.h.

Referenced by TIMER0_ISR().

#define PPM_IT   PPM_CRI

Definition at line 47 of file ppm_arch.h.

#define RC_PPM_SIGNED_TICKS_OF_USEC (   _v)    signed_cpu_ticks_of_usec(_v)

Definition at line 44 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 43 of file ppm_arch.h.

#define USEC_OF_RC_PPM_TICKS (   _v)    usec_of_cpu_ticks(_v)

Definition at line 45 of file ppm_arch.h.