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"
static uint32_t timer_rollover_cnt
static void icuoverflowcb(ICUDriver *icup)
PPM Overflow callback.
void ppm_arch_init(void)
Architecture dependant code.
#define RADIO_CONTROL_NB_CHANNEL
uint32_t ppm_last_pulse_time
#define PPM_TIMER_FREQUENCY
void ppm_decode_frame_width(uint32_t ppm_width)
Decode a PPM frame from last width.
static void icuperiodcb(ICUDriver *icup)
PPM Pulse period callback.
static ICUConfig ppm_icucfg
ICU timer configuration.