1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-20 14:55:21 +03:00

Merge pull request #2727 from DieHertz/camera-control

Camera OSD control
This commit is contained in:
Michael Keller 2017-07-18 06:47:57 +08:00 committed by GitHub
commit dcc600a78b
21 changed files with 416 additions and 21 deletions

View file

@ -131,7 +131,11 @@ typedef void pwmCompleteWriteFunc(uint8_t motorCount); // function pointer use
typedef struct {
volatile timCCR_t *ccr;
TIM_TypeDef *tim;
TIM_TypeDef *tim;
} timerChannel_t;
typedef struct {
timerChannel_t channel;
float pulseScale;
float pulseOffset;
bool forceOverflow;
@ -181,6 +185,7 @@ void pwmWriteBeeper(bool onoffBeep);
void pwmToggleBeeper(void);
void beeperPwmInit(const ioTag_t tag, uint16_t frequency);
#endif
void pwmOutConfig(timerChannel_t *channel, const timerHardware_t *timerHardware, uint32_t hz, uint16_t period, uint16_t value, uint8_t inversion);
void pwmWriteMotor(uint8_t index, float value);
void pwmShutdownPulsesForAllMotors(uint8_t motorCount);