APM:Libraries
|
#include "pwm_in.h"
#include <stdbool.h>
#include "hal_types.h"
#include "timer.h"
#include <systick.h>
#include "gpio_hal.h"
#include <boards.h>
#include "ring_buffer_pulse.h"
Go to the source code of this file.
Macros | |
#define | PPM_CHANNELS 2 |
Functions | |
static void | pwmIRQHandler (uint32_t v) |
static void | pwmInitializeInput (uint8_t ppmsum) |
void | pwmInit (bool ppmsum) |
bool | getPPM_Pulse (Pulse *p, uint8_t ch) |
uint16_t | getPPM_count (uint8_t ch) |
Variables | |
const struct TIM_Channel | PWM_Channels [] |
struct PPM_State PPM_Inputs [PPM_CHANNELS] | IN_CCM |
static uint16_t | num_ppm_channels = 1 |
#define PPM_CHANNELS 2 |
(c) 2017 night _gho st@yk octp a.ru
also see https://github.com/mahowik/MahoRotorF4-Discovery/blob/master/src/drv/drv_pwm_fy90q.c
Definition at line 45 of file pwm_in.c.
Referenced by getPPM_Pulse(), and pwmInit().
uint16_t getPPM_count | ( | uint8_t | ch | ) |
Definition at line 193 of file pwm_in.c.
Referenced by F4Light::PPM_parser::parse_pulses().
bool getPPM_Pulse | ( | Pulse * | p, |
uint8_t | ch | ||
) |
Definition at line 183 of file pwm_in.c.
Referenced by F4Light::PPM_parser::parse_pulses().
void pwmInit | ( | bool | ppmsum | ) |
Definition at line 165 of file pwm_in.c.
Referenced by F4Light::RCInput::init().
|
inlinestatic |
|
static |
Definition at line 62 of file pwm_in.c.
Referenced by pwmInitializeInput().
struct PPM_State PPM_Inputs [PPM_CHANNELS] IN_CCM |
|
static |
Definition at line 59 of file pwm_in.c.
Referenced by pwmInit(), pwmInitializeInput(), and pwmIRQHandler().
const struct TIM_Channel PWM_Channels[] |
Referenced by pwmInitializeInput(), and pwmIRQHandler().