hwdef: minimize_features.inc: nominate all included battery backends
this will stop the number growing on our smallest boards
This commit is contained in:
parent
3f33457404
commit
9e0c83503e
@ -144,15 +144,16 @@ define HAL_BOARD_TERRAIN_DIRECTORY "/APM/TERRAIN"
|
||||
|
||||
define STM32_PWM_USE_ADVANCED TRUE
|
||||
|
||||
# disable SMBUS battery monitors to save flash
|
||||
define AP_BATTERY_SMBUS_ENABLED 0
|
||||
|
||||
# disable parachute to save flash
|
||||
define HAL_PARACHUTE_ENABLED 0
|
||||
|
||||
# save FLASH, but leave above when flash issue is fixed
|
||||
include ../include/minimize_features.inc
|
||||
|
||||
# disable SMBUS battery monitors to save flash
|
||||
undef AP_BATTERY_SMBUS_ENABLED
|
||||
define AP_BATTERY_SMBUS_ENABLED 0
|
||||
|
||||
# setup for OSD
|
||||
undef OSD_ENABLED # minimize_features.inc removes this
|
||||
define OSD_ENABLED 1
|
||||
|
@ -169,6 +169,7 @@ define HAL_BATT2_VOLT_SCALE 11.0
|
||||
include ../include/minimize_features.inc
|
||||
include ../include/minimal_GPS.inc
|
||||
|
||||
undef AP_BATTERY_SMBUS_ENABLED
|
||||
define AP_BATTERY_SMBUS_ENABLED 0
|
||||
define HAL_PARACHUTE_ENABLED 0
|
||||
|
||||
|
@ -64,3 +64,17 @@ define AP_CAN_SLCAN_ENABLED 0
|
||||
|
||||
# no beacon support on minimized boards:
|
||||
define AP_BEACON_ENABLED 0
|
||||
|
||||
# restricted battery backends:
|
||||
define AP_BATTERY_BACKEND_DEFAULT_ENABLED 0
|
||||
define AP_BATTERY_ANALOG_ENABLED 1
|
||||
define AP_BATTERY_ESC_ENABLED 1
|
||||
define AP_BATTERY_UAVCAN_BATTERYINFO_ENABLED HAL_ENABLE_DRONECAN_DRIVERS
|
||||
define AP_BATTERY_SUM_ENABLED 1
|
||||
define AP_BATTERY_SYNTHETIC_CURRENT_ENABLED 1
|
||||
define AP_BATTERY_SMBUS_ENABLED 1
|
||||
define AP_BATTERY_SMBUS_GENERIC_ENABLED AP_BATTERY_SMBUS_ENABLED
|
||||
define AP_BATTERY_SMBUS_NEODESIGN_ENABLED AP_BATTERY_SMBUS_ENABLED
|
||||
define AP_BATTERY_SMBUS_SUI_ENABLED AP_BATTERY_SMBUS_ENABLED
|
||||
define AP_BATTERY_SMBUS_MAXELL_ENABLED AP_BATTERY_SMBUS_ENABLED
|
||||
define AP_BATTERY_SMBUS_ROTOYE_ENABLED AP_BATTERY_SMBUS_ENABLED
|
||||
|
Loading…
Reference in New Issue
Block a user