mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-23 16:25:31 +03:00
Easy compile option for buzzer on PIN6
This commit is contained in:
parent
1a667442f2
commit
5f12711c24
2 changed files with 18 additions and 4 deletions
|
@ -27,8 +27,14 @@
|
|||
#define INVERTER_PERIPHERAL RCC_APB2Periph_GPIOB
|
||||
#define INVERTER_USART USART1
|
||||
|
||||
//#define BEEPER_PIN6 // Uncomment this line for hexacopter configurations where PIN6 is needed for motor
|
||||
|
||||
#define BEEP_GPIO GPIOA
|
||||
#ifdef BEEPER_PIN6
|
||||
#define BEEP_PIN Pin_2 // PA2 (Beeper)
|
||||
#else
|
||||
#define BEEP_PIN Pin_15 // PA15 (Beeper)
|
||||
#endif
|
||||
#define BEEP_PERIPHERAL RCC_APB2Periph_GPIOA
|
||||
|
||||
#define MPU6000_CS_GPIO GPIOA
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue