1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-24 08:45:36 +03:00

Allow excluding of servo code at compilation time.

This is in preparation for backbox on CJMCU/64k.

Flight tested on CJMCU.
This commit is contained in:
Dominic Clifton 2015-02-22 16:20:04 +00:00
parent 5a15c3b271
commit 9057d70410
26 changed files with 131 additions and 48 deletions

View file

@ -49,14 +49,16 @@ typedef struct drv_pwm_config_t {
bool useOneshot;
bool useSoftSerial;
bool useLEDStrip;
#ifdef USE_SERVOS
bool useServos;
bool extraServos; // configure additional 4 channels in PPM mode as servos, not motors
uint16_t servoPwmRate;
uint16_t servoCenterPulse;
#endif
bool airplane; // fixed wing hardware config, lots of servos etc
uint16_t motorPwmRate;
uint16_t servoPwmRate;
uint16_t idlePulse; // PWM value to use when initializing the driver. set this to either PULSE_1MS (regular pwm),
// some higher value (used by 3d mode), or 0, for brushed pwm drivers.
uint16_t servoCenterPulse;
} drv_pwm_config_t;