45 #define PULSES_QUEUE_SIZE (25*12*2) // 1 full frame by 25 bytes (12 bits, 2 measures per bit) each 67 #define PWM_CHANNELS (sizeof(PWM_Channels) / sizeof(struct TIM_Channel) )
Simple circular buffer for PEM input.
volatile pulse_buffer pulses
bool getPPM_Pulse(Pulse *p, uint8_t ch)
static void pwm_setHandler(Handler handler, uint8_t ch)
#define PULSES_QUEUE_SIZE
const struct TIM_Channel PWM_Channels[]
uint16_t getPPM_count(uint8_t ch)
struct PPM_State PPM_Inputs[]
void pwmInit(bool ppmsum)