#if defined (PPM_CH1_STANDARD) || defined (PPM_CH1_STANDARD_EXTENDED)
#ifdef PPM_CH1_STANDARD_EXTENDED
// Max input PPM channels
// PPM channel count limits
#define PPM_CH1_MIN_CHANNELS 4
#define PPM_CH1_MAX_CHANNELS 9
// Frame period
#define PPM_CH1_FRAME_PERIOD 22100 // frame period (microseconds)
#define PPM_CH1_FRAME_PERIOD 22120 // frame period (microseconds)
#else
// Max input PPM channels
// PPM channel count limits
#define PPM_CH1_MIN_CHANNELS 4
#define PPM_CH1_MAX_CHANNELS 8
// Frame period
#define PPM_CH1_FRAME_PERIOD 20000 // frame period (microseconds)
#endif
// Negative Shift
//#define SHIFT_CH1_NEGATIVE // Some receivers may use negative shift (zero volt part of the signal carry the PWM information instead of the positive part)
#ifdef PPM_CH1_V2 (PPMv2 is a 50 Hz 16 channels mode, used initialy on Futaba and later on other manufacturers modules)
#ifdef PPM_CH1_V2 (PPMv2 is a 50 Hz 16 channels mode)
// Max input PPM channels
// PPM channel count limits
#define PPM_CH1_MIN_CHANNELS 4
#define PPM_CH1_MAX_CHANNELS 16
// Frame period
#define PPM_CH1_FRAME_PERIOD 20000 // frame period (microseconds)
// Negative Shift
//#define SHIFT_CH1_NEGATIVE // Some receivers may use negative shift (zero volt part of the signal carry the PWM information instead of the positive part)
#ifdef PPM_CH1_V3 (PPMv3 is a 40 Hz slower refresh frequency 16 channels mode to allow 16 channels with older transmitter modules)
#ifdef PPM_CH1_V3 (PPMv3 is a 40 Hz slower refresh rate 16 channels mode)
// Max input PPM channels
// PPM channel count limits
#define PPM_CH1_MIN_CHANNELS 4
#define PPM_CH1_MAX_CHANNELS 16
// Frame period
#define PPM_CH1_FRAME_PERIOD 25000 // frame period (microseconds)
// Negative Shift
//#define SHIFT_CH1_NEGATIVE // Some receivers may use negative shift (zero volt part of the signal carry the PWM information instead of the positive part)
#if defined (PPM_CH2_STANDARD) || defined (PPM_CH2_STANDARD_EXTENDED)
#ifdef PPM_CH2_STANDARD_EXTENDED
// Max input PPM channels
#define PPM_CH2_CHANNELS 9
// PPM channel count limits
#define PPM_CH1_MIN_CHANNELS 4
#define PPM_CH1_MAX_CHANNELS 9
// Frame period
#define PPM_CH2_FRAME_PERIOD 22100 // frame period (microseconds)
#define PPM_CH2_FRAME_PERIOD 22120 // frame period (microseconds)
#else
// Max input PPM channels
#define PPM_CH2_CHANNELS 8
// PPM channel count limits
#define PPM_CH1_MIN_CHANNELS 4
#define PPM_CH1_MAX_CHANNELS 8
// Frame period
#define PPM_CH2_FRAME_PERIOD 20000 // frame period (microseconds)
#endif
// Negative Shift
//#define SHIFT_CH2_NEGATIVE // Some receivers may use negative shift (zero volt part of the signal carry the PWM information instead of the positive part)
#ifdef PPM_CH2_V2 (PPMv2 is a 50 Hz 16 channels mode, used initialy on Futaba and later on other manufacturers modules)
#ifdef PPM_CH2_V2 (PPMv2 is a 50 Hz 16 channels mode)
// Max input PPM channels
#define PPM_CH2_CHANNELS 16
// PPM channel count limits
#define PPM_CH1_MIN_CHANNELS 4
#define PPM_CH1_MAX_CHANNELS 16
// Frame period
#define PPM_CH2_FRAME_PERIOD 20000 // frame period (microseconds)
// Negative Shift
//#define SHIFT_CH2_NEGATIVE // Some receivers may use negative shift (zero volt part of the signal carry the PWM information instead of the positive part)
#ifdef PPM_CH2_V3 (PPMv3 is a 40 Hz slower refresh frequency 16 channels mode to allow 16 channels with older transmitter modules)
#ifdef PPM_CH2_V3 (PPMv3 is a 40 Hz slower refresh rate 16 channels mode)
// Max input PPM channels
#define PPM_CH2_CHANNELS 16
// PPM channel count limits
#define PPM_CH1_MIN_CHANNELS 4
#define PPM_CH1_MAX_CHANNELS 16
// Frame period
#define PPM_CH2_FRAME_PERIOD 25000 // frame period (microseconds)
// Negative Shift
//#define SHIFT_CH2_NEGATIVE // Some receivers may use negative shift (zero volt part of the signal carry the PWM information instead of the positive part)