AP_HAL_ChibiOS: factor out a save_some_flash.inc

This commit is contained in:
Peter Barker 2022-10-25 16:17:01 +11:00 committed by Andrew Tridgell
parent 65558afa8f
commit 33207bb915
15 changed files with 22 additions and 70 deletions

View File

@ -159,11 +159,7 @@ ROMFS_WILDCARD libraries/AP_OSD/fonts/font0.bin
define AP_PARAM_MAX_EMBEDDED_PARAM 256
# save some flash
include ../include/save_some_flash.inc
define AP_BATTMON_SMBUS_ENABLE 0
define HAL_GENERATOR_ENABLED 0
define AC_OAPATHPLANNER_ENABLED 0
define PRECISION_LANDING 0
define AP_OPTICALFLOW_ENABLED 0
define AP_ICENGINE_ENABLED 0
define HAL_PARACHUTE_ENABLED 0
define HAL_SPRAYER_ENABLED 0

View File

@ -139,11 +139,7 @@ ROMFS_WILDCARD libraries/AP_OSD/fonts/font0.bin
define STM32_PWM_USE_ADVANCED TRUE
# save some flash
define HAL_GENERATOR_ENABLED 0
define AC_OAPATHPLANNER_ENABLED 0
define PRECISION_LANDING 0
define AP_OPTICALFLOW_ENABLED 0
define AP_ICENGINE_ENABLED 0
include ../include/save_some_flash.inc
# only include ublox GPS driver
include ../include/minimal_GPS.inc

View File

@ -61,16 +61,12 @@ IMU BMI270 SPI:bmi270 ROTATION_ROLL_180_YAW_225
define HAL_BARO_ALLOW_INIT_NO_BARO 1
# save some flash
define HAL_GENERATOR_ENABLED 0
define AC_OAPATHPLANNER_ENABLED 0
define PRECISION_LANDING 0
include ../include/save_some_flash.inc
define HAL_BARO_WIND_COMP_ENABLED 0
define AP_GRIPPER_ENABLED 0
define HAL_PARACHUTE_ENABLED 0
define HAL_SPRAYER_ENABLED 0
define AP_BATTMON_SMBUS_ENABLE 0
define AP_OPTICALFLOW_ENABLED 0
define AP_ICENGINE_ENABLED 0
# only include ublox GPS driver
include ../include/minimal_GPS.inc

View File

@ -162,9 +162,7 @@ define STM32_PWM_USE_ADVANCED TRUE
# define HAL_NAVEKF3_AVAILABLE 0
# save some flash
define HAL_GENERATOR_ENABLED 0
define AC_OAPATHPLANNER_ENABLED 0
define PRECISION_LANDING 0
include ../include/save_some_flash.inc
define HAL_BARO_WIND_COMP_ENABLED 0
define AP_GRIPPER_ENABLED 0
define HAL_PARACHUTE_ENABLED 0
@ -174,5 +172,3 @@ define HAL_PARACHUTE_ENABLED 0
include ../include/minimal.inc
define HAL_SPRAYER_ENABLED 0
define AP_BATTMON_SMBUS_ENABLE 0
define AP_OPTICALFLOW_ENABLED 0
define AP_ICENGINE_ENABLED 0

View File

@ -40,12 +40,8 @@ DMA_NOSHARE SPI3_RX
define STM32_PWM_USE_ADVANCED TRUE
# save some flash
include ../include/save_some_flash.inc
define AP_BATTMON_SMBUS_ENABLE 0
define HAL_PARACHUTE_ENABLED 0
define HAL_SPRAYER_ENABLED 0
define HAL_MOUNT_ENABLED 0
define HAL_GENERATOR_ENABLED 0
define AC_OAPATHPLANNER_ENABLED 0
define PRECISION_LANDING 0
define AP_OPTICALFLOW_ENABLED 0
define AP_ICENGINE_ENABLED 0

View File

@ -168,8 +168,4 @@ define AP_PARAM_MAX_EMBEDDED_PARAM 1024
define HAL_MOUNT_ENABLED 0
# save some flash
define HAL_GENERATOR_ENABLED 0
define AC_OAPATHPLANNER_ENABLED 0
define PRECISION_LANDING 0
define AP_OPTICALFLOW_ENABLED 0
define AP_ICENGINE_ENABLED 0
include ../include/save_some_flash.inc

View File

@ -178,12 +178,11 @@ define AP_PARAM_MAX_EMBEDDED_PARAM 1024
define HAL_WITH_DSP FALSE
# --------------------- save flash ----------------------
# save some flash
include ../include/save_some_flash.inc
define AP_BATTMON_SMBUS_ENABLE 0
define HAL_PARACHUTE_ENABLED 0
define HAL_SPRAYER_ENABLED 0
define HAL_GENERATOR_ENABLED 0
define AC_OAPATHPLANNER_ENABLED 0
define PRECISION_LANDING 0
define HAL_BARO_WIND_COMP_ENABLED 0
define AP_GRIPPER_ENABLED 0
define HAL_RUNCAM_ENABLED 0
@ -192,5 +191,3 @@ define HAL_NMEA_OUTPUT_ENABLED 0
define HAL_BUTTON_ENABLED 0
define HAL_OREO_LED_ENABLED 0
define HAL_PICCOLO_CAN_ENABLE 0
define AP_OPTICALFLOW_ENABLED 0
define AP_ICENGINE_ENABLED 0

View File

@ -194,13 +194,9 @@ define AP_PARAM_MAX_EMBEDDED_PARAM 1024
define HAL_WITH_DSP FALSE
# save some flash
define HAL_GENERATOR_ENABLED 0
define AC_OAPATHPLANNER_ENABLED 0
define PRECISION_LANDING 0
include ../include/save_some_flash.inc
define HAL_BARO_WIND_COMP_ENABLED 0
define AP_GRIPPER_ENABLED 0
define AP_OPTICALFLOW_ENABLED 0
define AP_ICENGINE_ENABLED 0
# only include ublox GPS driver
include ../include/minimal_GPS.inc

View File

@ -170,11 +170,7 @@ define HAL_SPRAYER_ENABLED 0
define AP_PARAM_MAX_EMBEDDED_PARAM 1024
# save some flash
define HAL_GENERATOR_ENABLED 0
define AC_OAPATHPLANNER_ENABLED 0
define PRECISION_LANDING 0
define AP_OPTICALFLOW_ENABLED 0
define AP_ICENGINE_ENABLED 0
include ../include/save_some_flash.inc
# only include ublox GPS driver
include ../include/minimal_GPS.inc

View File

@ -142,14 +142,10 @@ ROMFS_WILDCARD libraries/AP_OSD/fonts/font0.bin
define STM32_PWM_USE_ADVANCED TRUE
# save some flash
define HAL_GENERATOR_ENABLED 0
define AC_OAPATHPLANNER_ENABLED 0
define PRECISION_LANDING 0
include ../include/save_some_flash.inc
define HAL_BARO_WIND_COMP_ENABLED 0
define AP_GRIPPER_ENABLED 0
define HAL_PARACHUTE_ENABLED 0
define HAL_SPRAYER_ENABLED 0
define AP_BATTMON_SMBUS_ENABLE 0
define AP_BATTMON_FUEL_ENABLE 0
define AP_OPTICALFLOW_ENABLED 0
define AP_ICENGINE_ENABLED 0

View File

@ -167,8 +167,4 @@ define HAL_BATT_CURR_SCALE 17.0
define STM32_PWM_USE_ADVANCED TRUE
# save some flash
define HAL_GENERATOR_ENABLED 0
define AC_OAPATHPLANNER_ENABLED 0
define PRECISION_LANDING 0
define AP_OPTICALFLOW_ENABLED 0
define AP_ICENGINE_ENABLED 0
include ../include/save_some_flash.inc

View File

@ -172,15 +172,11 @@ define HAL_BATT_CURR_SCALE 17.0
define STM32_PWM_USE_ADVANCED TRUE
# save some flash
define HAL_GENERATOR_ENABLED 0
define AC_OAPATHPLANNER_ENABLED 0
define PRECISION_LANDING 0
include ../include/save_some_flash.inc
define HAL_BARO_WIND_COMP_ENABLED 0
define HAL_RUNCAM_ENABLED 0
define HAL_SPEKTRUM_TELEM_ENABLED 0
define HAL_SOARING_ENABLED 0
define AP_OPTICALFLOW_ENABLED 0
define AP_ICENGINE_ENABLED 0
# minimal drivers to reduce flash usage
include ../include/minimal.inc

View File

@ -0,0 +1,6 @@
# save some flash
define HAL_GENERATOR_ENABLED 0
define AC_OAPATHPLANNER_ENABLED 0
define PRECISION_LANDING 0
define AP_OPTICALFLOW_ENABLED 0
define AP_ICENGINE_ENABLED 0

View File

@ -160,11 +160,7 @@ define HAL_SPRAYER_ENABLED 0
define AP_PARAM_MAX_EMBEDDED_PARAM 1024
# save some flash
define HAL_GENERATOR_ENABLED 0
define AC_OAPATHPLANNER_ENABLED 0
define PRECISION_LANDING 0
define AP_OPTICALFLOW_ENABLED 0
define AP_ICENGINE_ENABLED 0
include ../include/save_some_flash.inc
# only include ublox GPS driver
include ../include/minimal_GPS.inc

View File

@ -31,10 +31,7 @@ define AP_PARAM_MAX_EMBEDDED_PARAM 1024
define HAL_WITH_DSP FALSE
# save some flash
define HAL_GENERATOR_ENABLED 0
define AC_OAPATHPLANNER_ENABLED 0
define PRECISION_LANDING 0
include ../include/save_some_flash.inc
define HAL_BARO_WIND_COMP_ENABLED 0
define AP_GRIPPER_ENABLED 0
define AP_OPTICALFLOW_ENABLED 0
define AP_ICENGINE_ENABLED 0