1
0
Fork 0
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:
borisbstyle 2015-11-06 11:31:36 +01:00
parent 1a667442f2
commit 5f12711c24
2 changed files with 18 additions and 4 deletions

View file

@ -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