1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-16 21:05:35 +03:00

Add new basic feature conditionals (#8175)

Add new basic feature conditionals
This commit is contained in:
Michael Keller 2019-05-06 19:07:11 +12:00 committed by GitHub
commit d9382ad012
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
18 changed files with 79 additions and 7 deletions

View file

@ -24,6 +24,9 @@
#include <math.h>
#include "platform.h"
#ifdef USE_PWM_OUTPUT
#include "drivers/time.h"
#include "drivers/io.h"
@ -684,7 +687,7 @@ FAST_CODE uint16_t prepareDshotPacket(motorDmaOutput_t *const motor)
return packet;
}
#endif
#endif // USE_DSHOT
#ifdef USE_SERVOS
void pwmWriteServo(uint8_t index, float value)
@ -725,7 +728,7 @@ void servoDevInit(const servoDevConfig_t *servoConfig)
}
}
#endif
#endif // USE_SERVOS
#ifdef USE_BEEPER
void pwmWriteBeeper(bool onoffBeep)
@ -768,4 +771,5 @@ void beeperPwmInit(const ioTag_t tag, uint16_t frequency)
beeperPwm.enabled = false;
}
}
#endif // USE_BEEPER
#endif