28 #include "generated/airframe.h"
33 #include "subsystems/radio_control/ppm_arch.h"
41 #include "generated/radio.h"
46 #ifndef RADIO_CONTROL_NB_CHANNEL
47 #define RADIO_CONTROL_NB_CHANNEL RADIO_CTL_NB
50 #if RADIO_CONTROL_NB_CHANNEL > RADIO_CTL_NB
51 #error "RADIO_CONTROL_NB_CHANNEL mustn't be higher than number of channels in radio file."
57 #define PPM_PULSE_TYPE_POSITIVE 0
58 #define PPM_PULSE_TYPE_NEGATIVE 1
69 #define RadioControlEvent(_received_frame_handler) radio_control_impl_event(_received_frame_handler)
void ppm_decode_frame(uint32_t ppm_time)
Decode a PPM frame from global timer value.
uint16_t ppm_pulses[RADIO_CTL_NB]
volatile bool ppm_frame_available
void ppm_arch_init(void)
Architecture dependant code.
void ppm_decode_frame_width(uint32_t ppm_width)
Decode a PPM frame from last width.
void radio_control_impl_event(void(*_received_frame_handler)(void))
RC event function with handler callback.