hwdef: use an include file for boards requiring generic feature minimization
This commit is contained in:
parent
93b1825414
commit
3f98e3aacb
@ -158,7 +158,7 @@ define HAL_PARACHUTE_ENABLED 0
|
||||
define HAL_SPRAYER_ENABLED 0
|
||||
|
||||
# save FLASH, but leave above when flash issue is fixed
|
||||
define HAL_MINIMIZE_FEATURES 1
|
||||
include ../include/minimize_features.inc
|
||||
|
||||
|
||||
# reduce max size of embedded params for apj_tool.py
|
||||
|
@ -166,7 +166,7 @@ define HAL_BATT2_VOLT_SCALE 11.0
|
||||
|
||||
|
||||
# --------------------- save flash ----------------------
|
||||
define HAL_MINIMIZE_FEATURES 1
|
||||
include ../include/minimize_features.inc
|
||||
|
||||
define AP_BATTMON_SMBUS_ENABLE 0
|
||||
define HAL_PARACHUTE_ENABLED 0
|
||||
|
@ -165,4 +165,4 @@ define HAL_BOARD_TERRAIN_DIRECTORY "/APM/TERRAIN"
|
||||
define STM32_PWM_USE_ADVANCED TRUE
|
||||
|
||||
# we are low on flash on this board
|
||||
define HAL_MINIMIZE_FEATURES 1
|
||||
include ../include/minimize_features.inc
|
||||
|
@ -99,7 +99,7 @@ PA4 VSENSE ADC1 SCALE(2)
|
||||
|
||||
define HAL_NO_MONITOR_THREAD
|
||||
|
||||
define HAL_MINIMIZE_FEATURES 1
|
||||
include ../include/minimize_features.inc
|
||||
|
||||
|
||||
define AP_PARAM_MAX_EMBEDDED_PARAM 512
|
||||
|
@ -133,7 +133,7 @@ define HAL_PARACHUTE_ENABLED 0
|
||||
define HAL_SPRAYER_ENABLED 0
|
||||
|
||||
# save FLASH, but leave above when flash issue is fixed
|
||||
define HAL_MINIMIZE_FEATURES 1
|
||||
include ../include/minimize_features.inc
|
||||
|
||||
# one baro
|
||||
BARO BMP280 SPI:bmp280
|
||||
|
@ -36,5 +36,5 @@ COMPASS LSM303D SPI:lsm9ds0_am ROTATION_NONE
|
||||
define HAL_PROBE_EXTERNAL_I2C_COMPASSES
|
||||
|
||||
FLASH_SIZE_KB 1024
|
||||
define HAL_MINIMIZE_FEATURES 1
|
||||
include ../include/minimize_features.inc
|
||||
undef STORAGE_FLASH_PAGE
|
||||
|
@ -8,7 +8,7 @@ define AP_GPS_NMEA_ENABLED 1
|
||||
include ../include/minimal_GPS.inc
|
||||
|
||||
FLASH_SIZE_KB 1024
|
||||
define HAL_MINIMIZE_FEATURES 1
|
||||
include ../include/minimize_features.inc
|
||||
undef STORAGE_FLASH_PAGE
|
||||
|
||||
# produce this error if we are on a 2M board and using 1M firmware
|
||||
|
@ -9,7 +9,7 @@ FLASH_SIZE_KB 1024
|
||||
# actually needed as of February 2018 as the full build does fit in
|
||||
# 1M, but it prepares us for when large features such as scripting are
|
||||
# added to the build
|
||||
define HAL_MINIMIZE_FEATURES 1
|
||||
include ../include/minimize_features.inc
|
||||
|
||||
# we don't have a flash page spare to write parameters to:
|
||||
undef STORAGE_FLASH_PAGE
|
||||
|
@ -0,0 +1 @@
|
||||
define HAL_MINIMIZE_FEATURES 1
|
@ -137,4 +137,4 @@ define HAL_LOGGING_DATAFLASH_ENABLED 1
|
||||
define STM32_PWM_USE_ADVANCED TRUE
|
||||
|
||||
# we are low on flash on this board
|
||||
define HAL_MINIMIZE_FEATURES 1
|
||||
include ../include/minimize_features.inc
|
||||
|
Loading…
Reference in New Issue
Block a user