mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-24 00:35:39 +03:00
*** IO Driver updates ***
LED driver update Buzzer driver update Inverter driver update Spektrum bind driver update
This commit is contained in:
parent
9e30e69cee
commit
7db5445bf7
35 changed files with 305 additions and 724 deletions
|
@ -353,14 +353,12 @@ void init(void)
|
|||
|
||||
#ifdef BEEPER
|
||||
beeperConfig_t beeperConfig = {
|
||||
.gpioPeripheral = BEEP_PERIPHERAL,
|
||||
.gpioPin = BEEP_PIN,
|
||||
.gpioPort = BEEP_GPIO,
|
||||
.ioTag = IO_TAG(BEEPER),
|
||||
#ifdef BEEPER_INVERTED
|
||||
.gpioMode = Mode_Out_PP,
|
||||
.isOD = false,
|
||||
.isInverted = true
|
||||
#else
|
||||
.gpioMode = Mode_Out_OD,
|
||||
.isOD = true,
|
||||
.isInverted = false
|
||||
#endif
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue