AP_HAL_ChibiOS: change ADSB to use param ADSB_PORT instead of define

This commit is contained in:
Tom Pittenger 2020-12-17 21:41:10 -08:00 committed by Tom Pittenger
parent 2a4fef73dd
commit f670f7a9b6
3 changed files with 3 additions and 3 deletions

View File

@ -12,7 +12,7 @@ define HAL_AIRSPEED_BUS_DEFAULT 0
define AIRSPEED_MAX_SENSORS 1
# ADSB enable
define ADSB_PORT hal.serial(3)
define HAL_PERIPH_ADSB_PORT_DEFAULT 3
define HAL_PERIPH_ENABLE_ADSB
define HAL_PERIPH_ENABLE_AIRSPEED
# define HAL_PERIPH_ENABLE_MAG

View File

@ -151,7 +151,7 @@ define HAL_PERIPH_ENABLE_RANGEFINDER
define HAL_PERIPH_ENABLE_MSP
# allow for rangefinder to be plugged in on "MSP" port
define ADSB_PORT hal.serial(1)
define HAL_PERIPH_ADSB_PORT_DEFAULT 1
define HAL_PERIPH_ENABLE_ADSB
define HAL_MSP_ENABLED 1

View File

@ -18,7 +18,7 @@ define HAL_PERIPH_ENABLE_ADSB
define HAL_PERIPH_ENABLE_NCP5623_LED
define HAL_PERIPH_ENABLE_RANGEFINDER
define ADSB_PORT hal.serial(3)
define HAL_PERIPH_ADSB_PORT_DEFAULT 3
define HAL_AIRSPEED_BUS_DEFAULT 0
define AIRSPEED_MAX_SENSORS 1