mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-19 14:25:20 +03:00
Beeper PWM support
Beeper PWM frequency set limited to positive values Removal of all the defined(BEEPER_PWM) tabs and spaces cleanup in beeper functions Add IOGetByTag and timerGetByTag check to Beeper Pwm Init Add IO check before every Beeper Pwm functions in pwm_output Update pwm_output.c after comments from Mikeller
This commit is contained in:
parent
3408d9d613
commit
458cf6601d
11 changed files with 98 additions and 23 deletions
|
@ -653,6 +653,7 @@ static const clivalue_t valueTable[] = {
|
|||
#ifdef BEEPER
|
||||
{ "beeper_inversion", VAR_UINT8 | MASTER_VALUE | MODE_LOOKUP, .config.lookup = { TABLE_OFF_ON }, PG_BEEPER_DEV_CONFIG, offsetof(beeperDevConfig_t, isInverted) },
|
||||
{ "beeper_od", VAR_UINT8 | MASTER_VALUE | MODE_LOOKUP, .config.lookup = { TABLE_OFF_ON }, PG_BEEPER_DEV_CONFIG, offsetof(beeperDevConfig_t, isOpenDrain) },
|
||||
{ "beeper_frequency", VAR_INT16 | MASTER_VALUE, .config.minmax = { 0, 16000 }, PG_BEEPER_DEV_CONFIG, offsetof(beeperDevConfig_t, frequency) },
|
||||
#endif
|
||||
|
||||
// PG_MIXER_CONFIG
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue