Skip to content

Commit

Permalink
AP_HAL_ChibiOS:remove fetaures to allow boards to build
Browse files Browse the repository at this point in the history
  • Loading branch information
Hwurzburg authored and tridge committed Jun 3, 2024
1 parent 90ab6ad commit 887e471
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 15 deletions.
7 changes: 6 additions & 1 deletion libraries/AP_HAL_ChibiOS/hwdef/KakuteF7/hwdef.dat
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
15 changes: 1 addition & 14 deletions libraries/AP_HAL_ChibiOS/hwdef/MicoAir405v2/hwdef.dat
Original file line number Diff line number Diff line change
Expand Up @@ -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
3 changes: 3 additions & 0 deletions libraries/AP_HAL_ChibiOS/hwdef/OMNIBUSF7V2/hwdef.dat
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 887e471

Please sign in to comment.