AP_HAL_ChibiOS: use new AP_PERIPH_ADSB_ENABLED define

This commit is contained in:
Shiv Tyagi 2025-02-20 00:05:12 +05:30 committed by Peter Barker
parent 6dcb350b72
commit ab725360c1
9 changed files with 15 additions and 9 deletions

View File

@ -128,7 +128,7 @@ define HAL_PERIPH_GPS_PORT_DEFAULT 2
#define HAL_PERIPH_ENABLE_NCP5623_LED_WITHOUT_NOTIFY
# default ADSB off by setting 0 baudrate
define HAL_PERIPH_ENABLE_ADSB
define AP_PERIPH_ADSB_ENABLED 1
define HAL_PERIPH_ADSB_PORT_DEFAULT 3
define HAL_PERIPH_ADSB_BAUD_DEFAULT 57600

View File

@ -131,7 +131,7 @@ define HAL_PERIPH_GPS_PORT_DEFAULT 2
#define HAL_PERIPH_ENABLE_NCP5623_LED_WITHOUT_NOTIFY
# default ADSB off by setting 0 baudrate
define HAL_PERIPH_ENABLE_ADSB
define AP_PERIPH_ADSB_ENABLED 1
define HAL_PERIPH_ADSB_PORT_DEFAULT 3
define HAL_PERIPH_ADSB_BAUD_DEFAULT 57600

View File

@ -46,7 +46,7 @@ define HAL_MSP_ENABLED 1
# ----------- ADSB
define HAL_PERIPH_ENABLE_ADSB
define AP_PERIPH_ADSB_ENABLED 1
# ----------- RC INPUT

View File

@ -20,7 +20,7 @@ define AP_PERIPH_GPS_ENABLED 1
define AP_PERIPH_MAG_ENABLED 1
define AP_PERIPH_BARO_ENABLED 1
define AP_PERIPH_AIRSPEED_ENABLED 1
define HAL_PERIPH_ENABLE_ADSB
define AP_PERIPH_ADSB_ENABLED 1
define AP_PERIPH_RANGEFINDER_ENABLED 1
define HAL_PERIPH_ENABLE_RC_OUT
define AP_PERIPH_BATTERY_ENABLED 1

View File

@ -5,7 +5,7 @@ define STM32_ADC_USE_ADC1 FALSE
define HAL_DISABLE_ADC_DRIVER TRUE
# ENABLE ADSB
define HAL_PERIPH_ENABLE_ADSB
define AP_PERIPH_ADSB_ENABLED 1
define HAL_PERIPH_ADSB_PORT_DEFAULT 2

View File

@ -57,7 +57,7 @@ define HAL_PERIPH_LISTEN_FOR_SERIAL_UART_REBOOT_CMD_PORT 0
DEFAULTGPIO OUTPUT LOW PULLDOWN
# --------- Peripherals -----------
define HAL_PERIPH_ENABLE_ADSB
define AP_PERIPH_ADSB_ENABLED 1
define HAL_PERIPH_ADSB_PORT_DEFAULT 2
define AP_PERIPH_AIRSPEED_ENABLED 1

View File

@ -8,6 +8,6 @@ define AIRSPEED_MAX_SENSORS 1
# ADSB enable
define HAL_PERIPH_ADSB_PORT_DEFAULT 3
define HAL_PERIPH_ENABLE_ADSB
define AP_PERIPH_ADSB_ENABLED 1
define AP_PERIPH_AIRSPEED_ENABLED 1
# define AP_PERIPH_MAG_ENABLED 1

View File

@ -9,7 +9,7 @@ define AP_PERIPH_GPS_ENABLED 1
define AP_PERIPH_MAG_ENABLED 1
define AP_PERIPH_BARO_ENABLED 1
define AP_PERIPH_AIRSPEED_ENABLED 1
define HAL_PERIPH_ENABLE_ADSB
define AP_PERIPH_ADSB_ENABLED 1
define HAL_PERIPH_ENABLE_NCP5623_LED_WITHOUT_NOTIFY
define AP_PERIPH_RANGEFINDER_ENABLED 1

View File

@ -187,6 +187,9 @@
#ifdef HAL_PERIPH_ENABLE_RTC
#error "Change 'define HAL_PERIPH_ENABLE_RTC' to 'define AP_PERIPH_RTC_ENABLED 1'"
#endif
#ifdef HAL_PERIPH_ENABLE_ADSB
#error "Change 'define HAL_PERIPH_ENABLE_ADSB' to 'define AP_PERIPH_ADSB_ENABLED 1'"
#endif
#ifdef HAL_PERIPH_ENABLE_RCIN
#error "Change 'define HAL_PERIPH_ENABLE_RCIN' to 'define AP_PERIPH_RCIN_ENABLED 1'"
#endif
@ -218,6 +221,9 @@
#ifndef AP_PERIPH_AHRS_ENABLED
#define AP_PERIPH_AHRS_ENABLED 0
#endif
#ifndef AP_PERIPH_ADSB_ENABLED
#define AP_PERIPH_ADSB_ENABLED 0
#endif
#ifndef AP_PERIPH_MAG_ENABLED
#define AP_PERIPH_MAG_ENABLED 0
#endif
@ -480,7 +486,7 @@
#endif
#ifndef HAL_MAVLINK_BINDINGS_ENABLED
#define HAL_MAVLINK_BINDINGS_ENABLED defined(HAL_PERIPH_ENABLE_ADSB) || HAL_GCS_ENABLED
#define HAL_MAVLINK_BINDINGS_ENABLED AP_PERIPH_ADSB_ENABLED || HAL_GCS_ENABLED
#endif
// for boards other than AP_Periph we are always expecting delays when