40 #ifndef PPM_TIMER_FREQUENCY
41 #error "Undefined PPM_TIMER_FREQUENCY"
45 #error "PPM channel undefined"
74 #if defined PPM_PULSE_TYPE && PPM_PULSE_TYPE == PPM_PULSE_TYPE_POSITIVE
75 ICU_INPUT_ACTIVE_HIGH,
76 #elif defined PPM_PULSE_TYPE && PPM_PULSE_TYPE == PPM_PULSE_TYPE_NEGATIVE
79 #error "Unknown PPM_PULSE_TYPE"
#define PPM_TIMER_FREQUENCY
#define RADIO_CONTROL_NB_CHANNEL
static void icuoverflowcb(ICUDriver *icup)
PPM Overflow callback.
static ICUConfig ppm_icucfg
ICU timer configuration.
uint32_t ppm_last_pulse_time
static uint32_t timer_rollover_cnt
static void icuperiodcb(ICUDriver *icup)
PPM Pulse period callback.
void ppm_arch_init(void)
Architecture dependant code.
void ppm_decode_frame_width(uint32_t ppm_width)
Decode a PPM frame from last width.
Generic interface for radio control modules.
unsigned int uint32_t
Typedef defining 32 bit unsigned int type.
unsigned char uint8_t
Typedef defining 8 bit unsigned char type.