|
Paparazzi UAS
v5.12_stable-4-g9b43e9b
Paparazzi is a free software Unmanned Aircraft System.
|
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/gpio.h"#include "mcu_arch.h"
Include dependency graph for ppm_arch.c:Go to the source code of this file.
Macros | |
| #define | ONE_MHZ_CLK 1000000 |
| #define | PPM_IRQ_PRIO 2 |
Functions | |
| void | ppm_arch_init (void) |
| Architecture dependant code. More... | |
Variables | |
| static uint32_t | timer_rollover_cnt |
STM32 ppm decoder.
Input signal either on:
Definition in file ppm_arch.c.
| #define ONE_MHZ_CLK 1000000 |
Definition at line 48 of file ppm_arch.c.
Referenced by ppm_arch_init().
| #define PPM_IRQ_PRIO 2 |
Definition at line 52 of file ppm_arch.c.
Referenced by ppm_arch_init().
| void ppm_arch_init | ( | void | ) |
Architecture dependant code.
Definition at line 99 of file ppm_arch.c.
References FALSE, gpio_setup_pin_af(), ONE_MHZ_CLK, PPM_CC_IE, PPM_CHANNEL, ppm_cur_pulse, PPM_GPIO_AF, PPM_GPIO_PIN, PPM_GPIO_PORT, ppm_icucfg, PPM_IRQ, PPM_IRQ2, PPM_IRQ_PRIO, ppm_last_pulse_time, PPM_TIMER, PPM_TIMER_INPUT, RADIO_CONTROL_NB_CHANNEL, RC_PPM_TICKS_PER_USEC, timer_get_frequency(), and timer_rollover_cnt.
Here is the call graph for this function:
|
static |
Definition at line 56 of file ppm_arch.c.
Referenced by ppm_arch_init().