Paparazzi UAS  v5.18.0_stable
Paparazzi is a free software Unmanned Aircraft System.
trig_ext_hw.h File Reference
#include "std.h"
+ Include dependency graph for trig_ext_hw.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define TRIG_EXT_EDGE_RISING   1
 falling/rising edge More...
 
#define TRIG_EXT_EDGE_FALLING   0
 

Functions

void TRIG_ISR (void)
 
void trig_ext_init (void)
 

Variables

uint32_t trigger_t0
 
uint32_t delta_t0
 
volatile bool trig_ext_valid
 

Macro Definition Documentation

◆ TRIG_EXT_EDGE_FALLING

#define TRIG_EXT_EDGE_FALLING   0

Definition at line 10 of file trig_ext_hw.h.

◆ TRIG_EXT_EDGE_RISING

#define TRIG_EXT_EDGE_RISING   1

falling/rising edge

Definition at line 9 of file trig_ext_hw.h.

Function Documentation

◆ trig_ext_init()

void trig_ext_init ( void  )

Definition at line 26 of file trig_ext_hw.c.

References PPM_CCR_CRF, PPM_CCR_CRI, PPM_CCR_CRR, PPM_PINSEL, PPM_PINSEL_BIT, PPM_PINSEL_VAL, T0CCR, and trig_ext_valid.

Referenced by trigger_ext_init().

+ Here is the caller graph for this function:

◆ TRIG_ISR()

void TRIG_ISR ( void  )

Definition at line 30 of file trigger_ext_hw.c.

References delta_t0, last, msec_of_cpu_ticks(), PPM_CR, trig_ext_valid, TRIGGER_CR, trigger_delta_t0, trigger_ext_valid, and trigger_t0.

Referenced by TIMER0_ISR().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Variable Documentation

◆ delta_t0

uint32_t delta_t0

Definition at line 9 of file trig_ext_hw.c.

Referenced by TRIG_ISR(), and trigger_ext_periodic().

◆ trig_ext_valid

volatile bool trig_ext_valid

Definition at line 10 of file trig_ext_hw.c.

Referenced by trig_ext_init(), TRIG_ISR(), and trigger_ext_periodic().

◆ trigger_t0

uint32_t trigger_t0

Definition at line 8 of file trig_ext_hw.c.