mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-17 21:35:44 +03:00
Add and handle USE_PWM_OUTPUT
This commit is contained in:
parent
de1c1d5377
commit
45b7fa8095
7 changed files with 37 additions and 5 deletions
|
@ -24,6 +24,9 @@
|
|||
#include <math.h>
|
||||
|
||||
#include "platform.h"
|
||||
|
||||
#ifdef USE_PWM_OUTPUT
|
||||
|
||||
#include "drivers/time.h"
|
||||
|
||||
#include "drivers/io.h"
|
||||
|
@ -682,7 +685,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)
|
||||
|
@ -723,7 +726,7 @@ void servoDevInit(const servoDevConfig_t *servoConfig)
|
|||
}
|
||||
}
|
||||
|
||||
#endif
|
||||
#endif // USE_SERVOS
|
||||
|
||||
#ifdef USE_BEEPER
|
||||
void pwmWriteBeeper(bool onoffBeep)
|
||||
|
@ -766,4 +769,5 @@ void beeperPwmInit(const ioTag_t tag, uint16_t frequency)
|
|||
beeperPwm.enabled = false;
|
||||
}
|
||||
}
|
||||
#endif // USE_BEEPER
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue