mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-03-13 01:54:18 -03:00
AP_HAL_ChibiOS: use new AP_PERIPH_BUZZER_XX_ENABLED defines
This commit is contained in:
parent
b3581ba185
commit
fb95142953
@ -113,7 +113,7 @@ define HAL_COMPASS_MAX_SENSORS 1
|
||||
define AP_PERIPH_GPS_ENABLED 1
|
||||
define AP_PERIPH_MAG_ENABLED 1
|
||||
define AP_PERIPH_BARO_ENABLED 1
|
||||
define HAL_PERIPH_ENABLE_BUZZER
|
||||
define AP_PERIPH_BUZZER_ENABLED 1
|
||||
define AP_PERIPH_RC_OUT_ENABLED 1
|
||||
define AP_PERIPH_NOTIFY_ENABLED 1
|
||||
|
||||
|
@ -125,7 +125,7 @@ define HAL_COMPASS_MAX_SENSORS 1
|
||||
define AP_PERIPH_GPS_ENABLED 1
|
||||
define AP_PERIPH_MAG_ENABLED 1
|
||||
define AP_PERIPH_BARO_ENABLED 1
|
||||
define HAL_PERIPH_ENABLE_BUZZER
|
||||
define AP_PERIPH_BUZZER_ENABLED 1
|
||||
define AP_PERIPH_NOTIFY_ENABLED 1
|
||||
define AP_PERIPH_RC_OUT_ENABLED 1
|
||||
|
||||
|
@ -103,7 +103,7 @@ define AP_PERIPH_RC_OUT_ENABLED 1
|
||||
define AP_PERIPH_GPS_ENABLED 1
|
||||
define AP_PERIPH_MAG_ENABLED 1
|
||||
define AP_PERIPH_BARO_ENABLED 1
|
||||
define HAL_PERIPH_ENABLE_BUZZER
|
||||
define AP_PERIPH_BUZZER_ENABLED 1
|
||||
define HAL_PERIPH_NEOPIXEL_COUNT 8
|
||||
define HAL_PERIPH_NEOPIXEL_CHAN 0
|
||||
define AP_PERIPH_LED_BRIGHT_DEFAULT 50
|
||||
|
@ -140,6 +140,6 @@ define HAL_PERIPH_NEOPIXEL_CHAN_WITHOUT_NOTIFY 0
|
||||
define HAL_PERIPH_NEOPIXEL_COUNT_WITHOUT_NOTIFY 8
|
||||
|
||||
# also enable buzzer
|
||||
define HAL_PERIPH_ENABLE_BUZZER_WITHOUT_NOTIFY 1
|
||||
define AP_PERIPH_BUZZER_WITHOUT_NOTIFY_ENABLED 1
|
||||
|
||||
define DEFAULT_NTF_LED_TYPES 455
|
||||
|
@ -247,6 +247,12 @@
|
||||
#ifdef HAL_PERIPH_ENABLE_NCP5623_BGR_LED_WITHOUT_NOTIFY
|
||||
#error "Change 'define HAL_PERIPH_ENABLE_NCP5623_BGR_LED_WITHOUT_NOTIFY' to 'define AP_PERIPH_NCP5623_BGR_LED_WITHOUT_NOTIFY_ENABLED 1'"
|
||||
#endif
|
||||
#ifdef HAL_PERIPH_ENABLE_BUZZER_WITHOUT_NOTIFY
|
||||
#error "Change 'define HAL_PERIPH_ENABLE_BUZZER_WITHOUT_NOTIFY' to 'define AP_PERIPH_BUZZER_WITHOUT_NOTIFY_ENABLED 1'"
|
||||
#endif
|
||||
#ifdef HAL_PERIPH_ENABLE_BUZZER
|
||||
#error "Change 'define HAL_PERIPH_ENABLE_BUZZER' to 'define AP_PERIPH_BUZZER_ENABLED 1'"
|
||||
#endif
|
||||
|
||||
/*
|
||||
* defaults for various AP_Periph features:
|
||||
@ -338,6 +344,12 @@
|
||||
#ifndef AP_PERIPH_NCP5623_BGR_LED_WITHOUT_NOTIFY_ENABLED
|
||||
#define AP_PERIPH_NCP5623_BGR_LED_WITHOUT_NOTIFY_ENABLED 0
|
||||
#endif
|
||||
#ifndef AP_PERIPH_BUZZER_ENABLED
|
||||
#define AP_PERIPH_BUZZER_ENABLED 0
|
||||
#endif
|
||||
#ifndef AP_PERIPH_BUZZER_WITHOUT_NOTIFY_ENABLED
|
||||
#define AP_PERIPH_BUZZER_WITHOUT_NOTIFY_ENABLED 0
|
||||
#endif
|
||||
|
||||
/*
|
||||
* turning on of ArduPilot features based on which AP_Periph features
|
||||
|
Loading…
Reference in New Issue
Block a user