AP_HAL: move BUZZER_PIN into AP_HAL

This commit is contained in:
mirkix 2018-05-10 08:59:17 +02:00 committed by Francisco Ferreira
parent 56672c1c28
commit dfd2fb1841
3 changed files with 4 additions and 1 deletions

View File

@ -37,7 +37,7 @@
#ifdef BOARD_BUZZER_PIN
#define BUZZER_PIN BOARD_BUZZER_PIN
#define HAL_BUZZER_PIN BOARD_BUZZER_PIN
#endif
# define PUSHBUTTON_PIN BOARD_PUSHBUTTON_PIN

View File

@ -232,6 +232,7 @@
#define HAL_GPIO_C_LED_PIN 45
#define HAL_GPIO_LED_ON LOW
#define HAL_GPIO_LED_OFF HIGH
#define HAL_BUZZER_PIN 11
#define HAL_INS_DEFAULT HAL_INS_BBBMINI
#define HAL_INS_DEFAULT_ROTATION ROTATION_NONE
#define HAL_INS_MPU9250_NAME "mpu9250"
@ -274,6 +275,7 @@
#define HAL_GPIO_C_LED_PIN 57
#define HAL_GPIO_LED_ON HIGH
#define HAL_GPIO_LED_OFF LOW
#define HAL_BUZZER_PIN 28
#define HAL_INS_DEFAULT HAL_INS_MPU9250_SPI
#define HAL_INS_MPU9250_NAME "mpu9250"
#define HAL_INS_DEFAULT_ROTATION ROTATION_NONE

View File

@ -47,6 +47,7 @@
#define EXTERNAL_LED_ARMED 29 // Armed LED - AN11
#define EXTERNAL_LED_MOTOR1 30 // Motor1 LED - AN8
#define EXTERNAL_LED_MOTOR2 31 // Motor2 LED - AN12
#define HAL_BUZZER_PIN 32
#define HAL_BARO_MS5611_NAME "ms5611"
#define HAL_BARO_MS5611_SPI_INT_NAME "ms5611_int"