AP_HAL_ChibiOS: use new AP_PERIPH_BUZZER_XX_ENABLED defines

This commit is contained in:
Shiv Tyagi 2025-03-10 09:12:37 +05:30 committed by Peter Barker
parent b3581ba185
commit fb95142953
5 changed files with 16 additions and 4 deletions

View File

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

View File

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

View File

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

View File

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

View File

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