Paparazzi UAS  v5.18.0_stable
Paparazzi is a free software Unmanned Aircraft System.
trig_ext_hw.c File Reference
#include "std.h"
#include "mcu_periph/sys_time.h"
#include "LPC21xx.h"
#include "trig_ext_hw.h"
#include <BOARD_CONFIG>
+ Include dependency graph for trig_ext_hw.c:

Go to the source code of this file.

Functions

void TRIG_ISR ()
 
void trig_ext_init (void)
 

Variables

uint32_t trigger_t0
 
uint32_t delta_t0
 
volatile bool trig_ext_valid
 

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 ( )

Definition at line 13 of file trig_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.

+ Here is the call 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.

Referenced by TRIG_ISR(), and windturbine_periodic().