Paparazzi UAS  v5.0.5_stable-7-g4b8bbb7
Paparazzi is a free software Unmanned Aircraft System.
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
ppm_arch.c File Reference

STM32 ppm decoder. More...

#include "subsystems/radio_control.h"
#include "subsystems/radio_control/ppm.h"
#include <BOARD_CONFIG>
#include <libopencm3/stm32/rcc.h>
#include <libopencm3/stm32/gpio.h>
#include <libopencm3/stm32/timer.h>
#include <libopencm3/cm3/nvic.h>
#include "mcu_periph/sys_time.h"
#include "mcu_periph/gpio.h"
+ Include dependency graph for ppm_arch.c:

Go to the source code of this file.


#define ONE_MHZ_CLK   1000000


void ppm_arch_init (void)
 Architecture dependant code. More...


uint8_t ppm_cur_pulse
 State machine for decoding ppm frames. More...
uint32_t ppm_last_pulse_time
bool_t ppm_data_valid
static uint32_t timer_rollover_cnt

Detailed Description

STM32 ppm decoder.

Input signal either on:

  • PA1 TIM2/CH2 (uart1 trig on Lisa/L) (Servo 6 on Lisa/M)
  • PA10 TIM1/CH3 (uart1 trig on Lisa/L) (uart1 rx on Lisa/M)

Definition in file ppm_arch.c.

Macro Definition Documentation

#define ONE_MHZ_CLK   1000000

Definition at line 48 of file ppm_arch.c.

Referenced by ppm_arch_init().

Function Documentation

Variable Documentation

uint8_t ppm_cur_pulse

State machine for decoding ppm frames.

Definition at line 50 of file ppm_arch.c.

bool_t ppm_data_valid

Definition at line 52 of file ppm_arch.c.

uint32_t ppm_last_pulse_time

Definition at line 51 of file ppm_arch.c.

uint32_t timer_rollover_cnt

Definition at line 53 of file ppm_arch.c.

Referenced by ppm_arch_init().