Skip to content

Commit

Permalink
hwdef:include minimal in minimize_common
Browse files Browse the repository at this point in the history
  • Loading branch information
Hwurzburg committed Oct 22, 2023
1 parent fb87369 commit e9684eb
Show file tree
Hide file tree
Showing 22 changed files with 31 additions and 74 deletions.
3 changes: 0 additions & 3 deletions libraries/AP_HAL_ChibiOS/hwdef/ACNS-CM4Pilot/hwdef.dat
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,4 @@ define STM32_PWM_USE_ADVANCED TRUE

# --------------------- save flash ----------------------
include ../include/minimize_features.inc
include ../include/minimal.inc



1 change: 0 additions & 1 deletion libraries/AP_HAL_ChibiOS/hwdef/ACNS-F405AIO/hwdef.dat
Original file line number Diff line number Diff line change
Expand Up @@ -198,5 +198,4 @@ define STM32_PWM_USE_ADVANCED TRUE

# --------------------- save flash ----------------------
include ../include/minimize_features.inc
include ../include/minimal.inc

5 changes: 2 additions & 3 deletions libraries/AP_HAL_ChibiOS/hwdef/F35Lightning/hwdef.dat
Original file line number Diff line number Diff line change
Expand Up @@ -157,11 +157,10 @@ define HAL_BATT_VOLT_SCALE 11
define HAL_BATT_CURR_SCALE 25

# minimal drivers to reduce flash usage
include ../include/minimal.inc
define AP_BATTERY_SYNTHETIC_CURRENT_ENABLED 0
include ../include/no_bootloader_DFU.inc

# enable IMU fast sampling
define HAL_DEFAULT_INS_FAST_SAMPLE 1

# no space for bootloader:
# no space for bootloader in firmware image:
include ../include/no_bootloader_DFU.inc
12 changes: 3 additions & 9 deletions libraries/AP_HAL_ChibiOS/hwdef/FlywooF745/hwdef.dat
Original file line number Diff line number Diff line change
Expand Up @@ -170,15 +170,9 @@ define STM32_PWM_USE_ADVANCED TRUE

# save some flash
include ../include/save_some_flash.inc
define AP_GRIPPER_ENABLED 0
define HAL_PARACHUTE_ENABLED 0


# minimal drivers to reduce flash usage
include ../include/minimal.inc
define HAL_SPRAYER_ENABLED 0
define AP_BATTERY_SMBUS_ENABLED 0
include ../include/minimize_fpv.osd.inc
include ../include/no_bootloader_DFU.inc

define DEFAULT_NTF_LED_TYPES 257

include ../include/no_bootloader_DFU.inc

28 changes: 1 addition & 27 deletions libraries/AP_HAL_ChibiOS/hwdef/HEEWING-F405/hwdef.dat
Original file line number Diff line number Diff line change
Expand Up @@ -165,33 +165,7 @@ define HAL_GYROFFT_ENABLED 0
# --------------------- save flash ----------------------
define AP_BATTMON_SMBUS_ENABLE 0

include ../include/minimal.inc
include ../include/minimize_fpv.osd.inc
include ../include/save_some_flash.inc

# features that users are likely to want
define AP_TRAMP_ENABLED 1
define HAL_CRSF_TELEM_TEXT_SELECTION_ENABLED 1

# features that users are unlikely to want
define AC_OAPATHPLANNER_ENABLED 0
define AC_PRECLAND_ENABLED 0
define AP_ICENGINE_ENABLED 0
define AP_OPTICALFLOW_ENABLED 0
define HAL_GENERATOR_ENABLED 0

define HAL_SPRAYER_ENABLED 0
define PRECISION_LANDING 0
define GRIPPER_ENABLED 0
define HAL_HOTT_TELEM_ENABLED 0
define HAL_NMEA_OUTPUT_ENABLED 0
define HAL_BUTTON_ENABLED 0
define HAL_OREO_LED_ENABLED 0
define AP_OPTICALFLOW_ENABLED 0
define AP_ICENGINE_ENABLED 0
define AP_RANGEFINDER_ENABLED 0
define AP_RPM_EFI_ENABLED 0
define AP_RPM_PIN_ENABLED 0
define AP_RPM_GENERATOR_ENABLED 0
define HAL_PARACHUTE_ENABLED 0

AUTOBUILD_TARGETS Plane
2 changes: 1 addition & 1 deletion libraries/AP_HAL_ChibiOS/hwdef/KakuteF4/hwdef.dat
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,6 @@ define HAL_OSD_TYPE_DEFAULT 1
ROMFS_WILDCARD libraries/AP_OSD/fonts/font*.bin

# minimal drivers to reduce flash usage
include ../include/minimal.inc
include ../include/minimize_fpv.osd.inc

define DEFAULT_NTF_LED_TYPES 256
3 changes: 0 additions & 3 deletions libraries/AP_HAL_ChibiOS/hwdef/MambaF405-2022/hwdef.dat
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,4 @@ IMU Invensensev3 SPI:icm42688 ROTATION_ROLL_180_YAW_270
BARO SPL06 I2C:0:0x76
define AP_BARO_SPL06_ENABLED 1

# minimal drivers to reduce flash usage
include ../include/minimal.inc

define DEFAULT_NTF_LED_TYPES 257
1 change: 1 addition & 0 deletions libraries/AP_HAL_ChibiOS/hwdef/MambaF405US-I2C/hwdef.dat
Original file line number Diff line number Diff line change
Expand Up @@ -157,4 +157,5 @@ define HAL_OSD_TYPE_DEFAULT 1
ROMFS_WILDCARD libraries/AP_OSD/fonts/font*.bin

# no space for bootloader:
include ../include/minimize_fpv.osd.inc
include ../include/no_bootloader_DFU.inc
2 changes: 1 addition & 1 deletion libraries/AP_HAL_ChibiOS/hwdef/OmnibusNanoV6/hwdef.dat
Original file line number Diff line number Diff line change
Expand Up @@ -152,4 +152,4 @@ ROMFS_WILDCARD libraries/AP_OSD/fonts/font*.bin
define HAL_MOUNT_ENABLED 0

# minimal drivers to reduce flash usage
include ../include/minimal.inc
include ../include/minimize_fpv.osd.inc
1 change: 0 additions & 1 deletion libraries/AP_HAL_ChibiOS/hwdef/QioTekAdeptF407/hwdef.dat
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,6 @@ define HAL_STORAGE_SIZE 16384

# --------------------- save flash ----------------------
include ../include/minimize_features.inc
include ../include/minimal.inc

# setup for OSD
undef OSD_ENABLED
Expand Down
2 changes: 1 addition & 1 deletion libraries/AP_HAL_ChibiOS/hwdef/ReaperF745/hwdef.dat
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ define STM32_PWM_USE_ADVANCED TRUE

# save some flash
include ../include/save_some_flash.inc
include ../include/minimal.inc
include ../include/minimize_fpv.osd.inc
define AP_GRIPPER_ENABLED 0
define HAL_PARACHUTE_ENABLED 0
define HAL_SPRAYER_ENABLED 0
Expand Down
2 changes: 1 addition & 1 deletion libraries/AP_HAL_ChibiOS/hwdef/SuccexF4/hwdef.dat
Original file line number Diff line number Diff line change
Expand Up @@ -132,5 +132,5 @@ define HAL_SPRAYER_ENABLED 0
define AP_PARAM_MAX_EMBEDDED_PARAM 1024

# minimal drivers to reduce flash usage
include ../include/minimal.inc
include ../include/minimize_fpv.osd.inc
include ../include/no_bootloader_DFU.inc
2 changes: 1 addition & 1 deletion libraries/AP_HAL_ChibiOS/hwdef/VRBrain-v52/hwdef.dat
Original file line number Diff line number Diff line change
Expand Up @@ -164,4 +164,4 @@ define HAL_BATT_CURR_SCALE 17.0
define STM32_PWM_USE_ADVANCED TRUE

# minimal drivers to reduce flash usage
include ../include/minimal.inc
include ../include/minimize_features.inc
2 changes: 1 addition & 1 deletion libraries/AP_HAL_ChibiOS/hwdef/VRCore-v10/hwdef.dat
Original file line number Diff line number Diff line change
Expand Up @@ -164,4 +164,4 @@ define HAL_BATT_CURR_SCALE 17.0
define STM32_PWM_USE_ADVANCED TRUE

# minimal drivers to reduce flash usage
include ../include/minimal.inc
include ../include/minimize_features.inc
1 change: 0 additions & 1 deletion libraries/AP_HAL_ChibiOS/hwdef/VRUBrain-v51/hwdef.dat
Original file line number Diff line number Diff line change
Expand Up @@ -173,5 +173,4 @@ include ../include/save_some_flash.inc
define HAL_SPEKTRUM_TELEM_ENABLED 0

# minimal drivers to reduce flash usage
include ../include/minimal.inc
include ../include/minimize_features.inc
3 changes: 0 additions & 3 deletions libraries/AP_HAL_ChibiOS/hwdef/fmuv2/hwdef.dat
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,6 @@ include ../include/minimize_features.inc
# we don't have a flash page spare to write parameters to:
undef STORAGE_FLASH_PAGE

# minimal drivers to reduce flash usage
include ../include/minimal.inc

# produce this error if we are on a 2M board and using 1M firmware
define BOARD_CHECK_F427_USE_2M "2M flash - use fmuv3 firmware"

Expand Down
2 changes: 0 additions & 2 deletions libraries/AP_HAL_ChibiOS/hwdef/include/minimal.inc

This file was deleted.

10 changes: 0 additions & 10 deletions libraries/AP_HAL_ChibiOS/hwdef/include/minimal_Airspeed.inc

This file was deleted.

17 changes: 15 additions & 2 deletions libraries/AP_HAL_ChibiOS/hwdef/include/minimize_common.inc
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,12 @@ define AP_NOTIFY_NCP5623_ENABLED 0
# HOTT telemetry is quite rare, so we don't include it on smaller boards
define HAL_HOTT_TELEM_ENABLED 0

# smaller boards lose SIRF GPS support
define AP_GPS_SIRF_ENABLED 0
# smaller boards lose some GPS support
define AP_GPS_BACKEND_DEFAULT_ENABLED 0
define AP_GPS_UBLOX_ENABLED 1
define AP_GPS_DRONECAN_ENABLED HAL_ENABLE_DRONECAN_DRIVERS
undef HAL_MSP_GPS_ENABLED
define HAL_MSP_GPS_ENABLED HAL_MSP_SENSORS_ENABLED

# no moving baseline support:
define GPS_MOVING_BASELINE 0
Expand Down Expand Up @@ -113,3 +117,12 @@ define MODE_AUTOROTATE_ENABLED 0

# don't send RELAY_STATUS messages:
define AP_MAVLINK_MSG_RELAY_STATUS_ENABLED 0

#fewer airspeed sensors
define AP_AIRSPEED_BACKEND_DEFAULT_ENABLED 0
define AP_AIRSPEED_MS4525_ENABLED 1
define AP_AIRSPEED_ANALOG_ENABLED 1
define AP_AIRSPEED_MS5525_ENABLED 1
define AP_AIRSPEED_SDP3X_ENABLED 1
define AP_AIRSPEED_NMEA_ENABLED 1 # additional checks for vehicle type in .cpp
define AP_AIRSPEED_DRONECAN_ENABLED HAL_ENABLE_DRONECAN_DRIVERS
2 changes: 1 addition & 1 deletion libraries/AP_HAL_ChibiOS/hwdef/omnibusf4v6/hwdef.dat
Original file line number Diff line number Diff line change
Expand Up @@ -153,4 +153,4 @@ define OSD_ENABLED 1
ROMFS_WILDCARD libraries/AP_OSD/fonts/font*.bin

# minimal drivers to reduce flash usage
include ../include/minimal.inc
include ../include/minimize_fpv.osd.inc
2 changes: 1 addition & 1 deletion libraries/AP_HAL_ChibiOS/hwdef/speedybeef4/hwdef.dat
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,6 @@ define HAL_OSD_TYPE_DEFAULT 1
ROMFS_WILDCARD libraries/AP_OSD/fonts/font*.bin

# minimal drivers to reduce flash usage
include ../include/minimal.inc
include ../include/minimize_fpv.osd.inc
include ../include/no_bootloader_DFU.inc
define AP_BATTERY_SYNTHETIC_CURRENT_ENABLED 0
2 changes: 1 addition & 1 deletion libraries/AP_HAL_ChibiOS/hwdef/speedybeef4v3/hwdef.dat
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ define HAL_OSD_TYPE_DEFAULT 1
ROMFS_WILDCARD libraries/AP_OSD/fonts/font*.bin

# minimal drivers to reduce flash usage
include ../include/minimal.inc
include ../include/minimize_fpv.osd.inc
include ../include/no_bootloader_DFU.inc
define AP_BATTERY_SYNTHETIC_CURRENT_ENABLED 0

Expand Down

0 comments on commit e9684eb

Please sign in to comment.