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:
commit
dcc600a78b
21 changed files with 416 additions and 21 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue