diff --git a/libraries/AP_HAL_ChibiOS/hwdef/KakuteF7Mini/hwdef.dat b/libraries/AP_HAL_ChibiOS/hwdef/KakuteF7Mini/hwdef.dat index 85c917350c..1331fb1b9e 100644 --- a/libraries/AP_HAL_ChibiOS/hwdef/KakuteF7Mini/hwdef.dat +++ b/libraries/AP_HAL_ChibiOS/hwdef/KakuteF7Mini/hwdef.dat @@ -158,3 +158,12 @@ ROMFS_WILDCARD libraries/AP_OSD/fonts/font*.bin define BOARD_PWM_COUNT_DEFAULT 6 define STM32_PWM_USE_ADVANCED TRUE +define HAL_MINIMIZE_FEATURES 1 + +# disable SMBUS and fuel battery monitors to save flash +define HAL_BATTMON_SMBUS_ENABLE 0 +define HAL_BATTMON_FUEL_ENABLE 0 + +# disable parachute and sprayer to save flash +define HAL_PARACHUTE_ENABLED 0 +define HAL_SPRAYER_ENABLED 0 diff --git a/libraries/AP_HAL_ChibiOS/hwdef/MatekF405/hwdef.dat b/libraries/AP_HAL_ChibiOS/hwdef/MatekF405/hwdef.dat index 91a42c2ebc..c1dff216c2 100644 --- a/libraries/AP_HAL_ChibiOS/hwdef/MatekF405/hwdef.dat +++ b/libraries/AP_HAL_ChibiOS/hwdef/MatekF405/hwdef.dat @@ -173,3 +173,11 @@ define BOARD_PWM_COUNT_DEFAULT 8 define OSD_ENABLED 1 define HAL_OSD_TYPE_DEFAULT 1 ROMFS_WILDCARD libraries/AP_OSD/fonts/font*.bin + +# disable SMBUS and fuel battery monitors to save flash +define HAL_BATTMON_SMBUS_ENABLE 0 +define HAL_BATTMON_FUEL_ENABLE 0 + +# disable parachute and sprayer to save flash +define HAL_PARACHUTE_ENABLED 0 +define HAL_SPRAYER_ENABLED 0 diff --git a/libraries/AP_HAL_ChibiOS/hwdef/omnibusf4pro/hwdef.dat b/libraries/AP_HAL_ChibiOS/hwdef/omnibusf4pro/hwdef.dat index 4c06f15a9d..8fdfd44cc5 100644 --- a/libraries/AP_HAL_ChibiOS/hwdef/omnibusf4pro/hwdef.dat +++ b/libraries/AP_HAL_ChibiOS/hwdef/omnibusf4pro/hwdef.dat @@ -147,3 +147,11 @@ define BOARD_PWM_COUNT_DEFAULT 8 #font for the osd ROMFS_WILDCARD libraries/AP_OSD/fonts/font*.bin + +# disable SMBUS and fuel battery monitors to save flash +define HAL_BATTMON_SMBUS_ENABLE 0 +define HAL_BATTMON_FUEL_ENABLE 0 + +# disable parachute and sprayer to save flash +define HAL_PARACHUTE_ENABLED 0 +define HAL_SPRAYER_ENABLED 0