AP_HAL_ChibiOS:remove fetaures to allow boards to build

This commit is contained in:
Henry Wurzburg 2024-05-30 15:51:41 -05:00 committed by Andrew Tridgell
parent 90ab6adebc
commit 887e4713e6
3 changed files with 10 additions and 15 deletions

View File

@ -144,11 +144,16 @@ define HAL_PARACHUTE_ENABLED 0
# save FLASH, but leave above when flash issue is fixed
include ../include/minimize_fpv_osd.inc
include ../include/no_bootloader_DFU.inc
#only enable BMP280 Baro
define AP_BARO_BACKEND_DEFAULT_ENABLED 0
undef define AP_BARO_BMP280_ENABLED
define AP_BARO_BMP280_ENABLED 1
# disable SMBUS battery monitors to save flash
undef AP_BATTERY_SMBUS_ENABLED
define AP_BATTERY_SMBUS_ENABLED 0
# setup for OSD
define HAL_OSD_TYPE_DEFAULT 1
ROMFS_WILDCARD libraries/AP_OSD/fonts/font*.bin
@ -159,6 +164,6 @@ define HAL_WITH_MSP_DISPLAYPORT 1
undef HAL_MSP_ENABLED
define HAL_MSP_ENABLED 1
# need to probe external baros even 'though we're minimised:
# need to probe external baros even 'though we're minimised to allow custom build options:
undef AP_BARO_PROBE_EXTERNAL_I2C_BUSES
define AP_BARO_PROBE_EXTERNAL_I2C_BUSES 1

View File

@ -155,17 +155,4 @@ ROMFS_WILDCARD libraries/AP_OSD/fonts/font0.bin
define HAL_FRAME_TYPE_DEFAULT 12
# reduce flash usage
define HAL_MOUNT_ENABLED 0
define HAL_SPRAYER_ENABLED 0
define HAL_GENERATOR_ENABLED 0
define HAL_VISUALODOM_ENABLED 0
define AP_WINCH_ENABLED 0
define AP_BEACON_ENABLED 0
define AP_GRIPPER_ENABLED 0
define AP_ICENGINE_ENABLED 0
define AP_BARO_PROBE_EXTERNAL_I2C_BUSES 0
define OFFBOARD_GUIDED 0
define QAUTOTUNE_ENABLED 0
define EK3_FEATURE_EXTERNAL_NAV 0
define AP_MISSION_NAV_PAYLOAD_PLACE_ENABLED 0
define AC_PAYLOAD_PLACE_ENABLED 0
include ../include/minimize_fpv_osd.inc

View File

@ -129,6 +129,9 @@ define HAL_PARACHUTE_ENABLED 0
# save FLASH, but leave above when flash issue is fixed
include ../include/minimize_fpv_osd.inc
#not useable for quadplane
define HAL_QUADPLANE_ENABLED 0
# disable SMBUS monitors to save flash
undef AP_BATTERY_SMBUS_ENABLED
define AP_BATTERY_SMBUS_ENABLED 0