Paparazzi UAS  v5.8.2_stable-0-g6260b7c
Paparazzi is a free software Unmanned Aircraft System.
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
trigger_ext_hw.h File Reference
#include "core/trigger_ext.h"
+ Include dependency graph for trigger_ext_hw.h:

Go to the source code of this file.

Macros

#define TRIG_EXT_PINSEL   PPM_PINSEL
 
#define TRIG_EXT_PINSEL_VAL   PPM_PINSEL_VAL
 
#define TRIG_EXT_PINSEL_BIT   PPM_PINSEL_BIT
 
#define TRIG_EXT_CHANNEL   2
 
#define __SelectCapReg(_c)   T0CR ## _c
 
#define _SelectCapReg(_c)   __SelectCapReg(_c)
 
#define SelectCapReg(_c)   _SelectCapReg(_c)
 
#define __SetIntFlag(_c)   TIR_CR ## _c ## I
 
#define _SetIntFlag(_c)   __SetIntFlag(_c)
 
#define SetIntFlag(_c)   _SetIntFlag(_c)
 
#define __EnableRise(_c)   TCCR_CR ## _c ## _R
 
#define _EnableRise(_c)   __EnableRise(_c)
 
#define EnableRise(_c)   _EnableRise(_c)
 
#define __EnableFall(_c)   TCCR_CR ## _c ## _F
 
#define _EnableFall(_c)   __EnableFall(_c)
 
#define EnableFall(_c)   _EnableFall(_c)
 
#define __EnableInt(_c)   TCCR_CR ## _c ## _I
 
#define _EnableInt(_c)   __EnableInt(_c)
 
#define EnableInt(_c)   _EnableInt(_c)
 
#define TRIGGER_CR   SelectCapReg(TRIG_EXT_CHANNEL)
 
#define TRIGGER_IT   SetIntFlag(TRIG_EXT_CHANNEL)
 
#define TRIGGER_CRR   EnableRise(TRIG_EXT_CHANNEL)
 
#define TRIGGER_CRF   EnableFall(TRIG_EXT_CHANNEL)
 
#define TRIGGER_CRI   EnableInt(TRIG_EXT_CHANNEL)
 

Functions

void TRIG_ISR (void)
 

Macro Definition Documentation

#define __EnableFall (   _c)    TCCR_CR ## _c ## _F

Definition at line 54 of file trigger_ext_hw.h.

#define __EnableInt (   _c)    TCCR_CR ## _c ## _I

Definition at line 58 of file trigger_ext_hw.h.

#define __EnableRise (   _c)    TCCR_CR ## _c ## _R

Definition at line 50 of file trigger_ext_hw.h.

#define __SelectCapReg (   _c)    T0CR ## _c

Definition at line 42 of file trigger_ext_hw.h.

#define __SetIntFlag (   _c)    TIR_CR ## _c ## I

Definition at line 46 of file trigger_ext_hw.h.

#define _EnableFall (   _c)    __EnableFall(_c)

Definition at line 55 of file trigger_ext_hw.h.

#define _EnableInt (   _c)    __EnableInt(_c)

Definition at line 59 of file trigger_ext_hw.h.

#define _EnableRise (   _c)    __EnableRise(_c)

Definition at line 51 of file trigger_ext_hw.h.

#define _SelectCapReg (   _c)    __SelectCapReg(_c)

Definition at line 43 of file trigger_ext_hw.h.

#define _SetIntFlag (   _c)    __SetIntFlag(_c)

Definition at line 47 of file trigger_ext_hw.h.

#define EnableFall (   _c)    _EnableFall(_c)

Definition at line 56 of file trigger_ext_hw.h.

#define EnableInt (   _c)    _EnableInt(_c)

Definition at line 60 of file trigger_ext_hw.h.

#define EnableRise (   _c)    _EnableRise(_c)

Definition at line 52 of file trigger_ext_hw.h.

#define SelectCapReg (   _c)    _SelectCapReg(_c)

Definition at line 44 of file trigger_ext_hw.h.

#define SetIntFlag (   _c)    _SetIntFlag(_c)

Definition at line 48 of file trigger_ext_hw.h.

#define TRIG_EXT_CHANNEL   2

Definition at line 39 of file trigger_ext_hw.h.

#define TRIG_EXT_PINSEL   PPM_PINSEL

Definition at line 36 of file trigger_ext_hw.h.

Referenced by trigger_ext_init().

#define TRIG_EXT_PINSEL_BIT   PPM_PINSEL_BIT

Definition at line 38 of file trigger_ext_hw.h.

Referenced by trigger_ext_init().

#define TRIG_EXT_PINSEL_VAL   PPM_PINSEL_VAL

Definition at line 37 of file trigger_ext_hw.h.

Referenced by trigger_ext_init().

#define TRIGGER_CR   SelectCapReg(TRIG_EXT_CHANNEL)

Definition at line 62 of file trigger_ext_hw.h.

Referenced by TRIG_ISR().

#define TRIGGER_CRF   EnableFall(TRIG_EXT_CHANNEL)

Definition at line 65 of file trigger_ext_hw.h.

Referenced by trigger_ext_init().

#define TRIGGER_CRI   EnableInt(TRIG_EXT_CHANNEL)

Definition at line 66 of file trigger_ext_hw.h.

Referenced by trigger_ext_init().

#define TRIGGER_CRR   EnableRise(TRIG_EXT_CHANNEL)

Definition at line 64 of file trigger_ext_hw.h.

Referenced by trigger_ext_init().

#define TRIGGER_IT   SetIntFlag(TRIG_EXT_CHANNEL)

Definition at line 63 of file trigger_ext_hw.h.

Function Documentation

void TRIG_ISR ( void  )

Definition at line 30 of file trigger_ext_hw.c.