mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-02-28 10:43:58 -04:00
AP_HAL_ChibiOS: use new AP_PERIPH_ADSB_ENABLED define
This commit is contained in:
parent
6dcb350b72
commit
ab725360c1
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
||||
|
@ -46,7 +46,7 @@ define HAL_MSP_ENABLED 1
|
||||
|
||||
|
||||
# ----------- ADSB
|
||||
define HAL_PERIPH_ENABLE_ADSB
|
||||
define AP_PERIPH_ADSB_ENABLED 1
|
||||
|
||||
|
||||
# ----------- RC INPUT
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
||||
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user