mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-19 22:35:23 +03:00
Implemented Camera Control using Hardware and Software PWM
This commit is contained in:
parent
491ecba4ed
commit
cc358dc405
21 changed files with 399 additions and 22 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(IO_t io, 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