mirror of https://github.com/ArduPilot/ardupilot
AP_HAL_ChibiOS: factor out a save_some_flash.inc
This commit is contained in:
parent
65558afa8f
commit
33207bb915
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue