Paparazzi UAS  v5.18.0_stable
Paparazzi is a free software Unmanned Aircraft System.
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

◆ __EnableFall

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

Definition at line 54 of file trigger_ext_hw.h.

◆ __EnableInt

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

Definition at line 58 of file trigger_ext_hw.h.

◆ __EnableRise

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

Definition at line 50 of file trigger_ext_hw.h.

◆ __SelectCapReg

#define __SelectCapReg (   _c)    T0CR ## _c

Definition at line 42 of file trigger_ext_hw.h.

◆ __SetIntFlag

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

Definition at line 46 of file trigger_ext_hw.h.

◆ _EnableFall

#define _EnableFall (   _c)    __EnableFall(_c)

Definition at line 55 of file trigger_ext_hw.h.

◆ _EnableInt

#define _EnableInt (   _c)    __EnableInt(_c)

Definition at line 59 of file trigger_ext_hw.h.

◆ _EnableRise

#define _EnableRise (   _c)    __EnableRise(_c)

Definition at line 51 of file trigger_ext_hw.h.

◆ _SelectCapReg

#define _SelectCapReg (   _c)    __SelectCapReg(_c)

Definition at line 43 of file trigger_ext_hw.h.

◆ _SetIntFlag

#define _SetIntFlag (   _c)    __SetIntFlag(_c)

Definition at line 47 of file trigger_ext_hw.h.

◆ EnableFall

#define EnableFall (   _c)    _EnableFall(_c)

Definition at line 56 of file trigger_ext_hw.h.

◆ EnableInt

#define EnableInt (   _c)    _EnableInt(_c)

Definition at line 60 of file trigger_ext_hw.h.

◆ EnableRise

#define EnableRise (   _c)    _EnableRise(_c)

Definition at line 52 of file trigger_ext_hw.h.

◆ SelectCapReg

#define SelectCapReg (   _c)    _SelectCapReg(_c)

Definition at line 44 of file trigger_ext_hw.h.

◆ SetIntFlag

#define SetIntFlag (   _c)    _SetIntFlag(_c)

Definition at line 48 of file trigger_ext_hw.h.

◆ TRIG_EXT_CHANNEL

#define TRIG_EXT_CHANNEL   2

Definition at line 39 of file trigger_ext_hw.h.

◆ TRIG_EXT_PINSEL

#define TRIG_EXT_PINSEL   PPM_PINSEL

Definition at line 36 of file trigger_ext_hw.h.

◆ TRIG_EXT_PINSEL_BIT

#define TRIG_EXT_PINSEL_BIT   PPM_PINSEL_BIT

Definition at line 38 of file trigger_ext_hw.h.

◆ TRIG_EXT_PINSEL_VAL

#define TRIG_EXT_PINSEL_VAL   PPM_PINSEL_VAL

Definition at line 37 of file trigger_ext_hw.h.

◆ TRIGGER_CR

#define TRIGGER_CR   SelectCapReg(TRIG_EXT_CHANNEL)

Definition at line 62 of file trigger_ext_hw.h.

◆ TRIGGER_CRF

#define TRIGGER_CRF   EnableFall(TRIG_EXT_CHANNEL)

Definition at line 65 of file trigger_ext_hw.h.

◆ TRIGGER_CRI

#define TRIGGER_CRI   EnableInt(TRIG_EXT_CHANNEL)

Definition at line 66 of file trigger_ext_hw.h.

◆ TRIGGER_CRR

#define TRIGGER_CRR   EnableRise(TRIG_EXT_CHANNEL)

Definition at line 64 of file trigger_ext_hw.h.

◆ TRIGGER_IT

#define TRIGGER_IT   SetIntFlag(TRIG_EXT_CHANNEL)

Definition at line 63 of file trigger_ext_hw.h.

Function Documentation

◆ TRIG_ISR()

void TRIG_ISR ( void  )

Definition at line 30 of file trigger_ext_hw.c.