Paparazzi UAS  v5.18.0_stable
Paparazzi is a free software Unmanned Aircraft System.
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_IT   PPM_CRI
 
#define PPM_ISR()
 

Detailed Description

LPC21xx ppm decoder.

Definition in file ppm_arch.h.

Macro Definition Documentation

◆ PPM_ISR

#define PPM_ISR ( )
Value:
{ \
uint32_t now = PPM_CR; \
ppm_decode_frame(now); \
}

Definition at line 49 of file ppm_arch.h.

◆ PPM_IT

#define PPM_IT   PPM_CRI

Definition at line 47 of file ppm_arch.h.

◆ RC_PPM_SIGNED_TICKS_OF_USEC

#define RC_PPM_SIGNED_TICKS_OF_USEC (   _v)    signed_cpu_ticks_of_usec(_v)

Definition at line 44 of file ppm_arch.h.

◆ RC_PPM_TICKS_OF_USEC

#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.

◆ USEC_OF_RC_PPM_TICKS

#define USEC_OF_RC_PPM_TICKS (   _v)    usec_of_cpu_ticks(_v)

Definition at line 45 of file ppm_arch.h.

PPM_CR
#define PPM_CR
Definition: booz_1.0.h:57