From fbb9e3eeee0330fd9fa64d81d47851aa12801f10 Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Sat, 23 Mar 2024 01:00:48 +1100 Subject: [PATCH] hwdef: make a skyviper.inc, use it on skyviper-journey --- libraries/AP_HAL_ChibiOS/hwdef/include/skyviper.inc | 4 ++++ libraries/AP_HAL_ChibiOS/hwdef/skyviper-journey/hwdef.dat | 1 + libraries/AP_HAL_ChibiOS/hwdef/skyviper-v2450/hwdef.dat | 1 + 3 files changed, 6 insertions(+) create mode 100644 libraries/AP_HAL_ChibiOS/hwdef/include/skyviper.inc diff --git a/libraries/AP_HAL_ChibiOS/hwdef/include/skyviper.inc b/libraries/AP_HAL_ChibiOS/hwdef/include/skyviper.inc new file mode 100644 index 0000000000000..ce71694dfc776 --- /dev/null +++ b/libraries/AP_HAL_ChibiOS/hwdef/include/skyviper.inc @@ -0,0 +1,4 @@ +# include file for SkyViper boards. Move things in from +# skyviper-v2450/hwdef.dat as required. + +define AP_AIRSPEED_ENABLED 0 diff --git a/libraries/AP_HAL_ChibiOS/hwdef/skyviper-journey/hwdef.dat b/libraries/AP_HAL_ChibiOS/hwdef/skyviper-journey/hwdef.dat index 5a3282bd63e63..a6711bd7eafb2 100644 --- a/libraries/AP_HAL_ChibiOS/hwdef/skyviper-journey/hwdef.dat +++ b/libraries/AP_HAL_ChibiOS/hwdef/skyviper-journey/hwdef.dat @@ -134,6 +134,7 @@ env BUILD_ABIN True define AP_PARAM_MAX_EMBEDDED_PARAM 8192 # Disable un-needed hardware drivers +include ../include/skyviper.inc define HAL_WITH_ESC_TELEM 0 define AP_FETTEC_ONEWIRE_ENABLED 0 diff --git a/libraries/AP_HAL_ChibiOS/hwdef/skyviper-v2450/hwdef.dat b/libraries/AP_HAL_ChibiOS/hwdef/skyviper-v2450/hwdef.dat index 88a6bf4711a66..9f110769cb3bc 100644 --- a/libraries/AP_HAL_ChibiOS/hwdef/skyviper-v2450/hwdef.dat +++ b/libraries/AP_HAL_ChibiOS/hwdef/skyviper-v2450/hwdef.dat @@ -68,6 +68,7 @@ STORAGE_FLASH_PAGE 22 env BUILD_ABIN True # Disable un-needed hardware drivers +include ../include/skyviper.inc define AP_AIRSPEED_ENABLED 0 define AP_BEACON_ENABLED 0 define AP_OPTICALFLOW_ENABLED 0