Skip to content

Commit

Permalink
hwdef: remove save_some_flash.inc
Browse files Browse the repository at this point in the history
all but one board was getting all of these includes from minimize_fpv_osd, and the remaining board had most lines foming from minimize_features.inc.

This file has served its purpose, its role now taken on by minimize_fpv_osd.inc
  • Loading branch information
peterbarker committed Mar 24, 2024
1 parent bd518dc commit 813f0cf
Show file tree
Hide file tree
Showing 14 changed files with 5 additions and 29 deletions.
1 change: 0 additions & 1 deletion libraries/AP_HAL_ChibiOS/hwdef/AtomRCF405NAVI/hwdef.dat
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,6 @@ define AP_PARAM_MAX_EMBEDDED_PARAM 256

# save some flash
include ../include/minimize_fpv_osd.inc
include ../include/save_some_flash.inc

define HAL_PARACHUTE_ENABLED 0
define HAL_SPRAYER_ENABLED 0
Expand Down
1 change: 0 additions & 1 deletion libraries/AP_HAL_ChibiOS/hwdef/FlywooF745/hwdef.dat
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,6 @@ ROMFS_WILDCARD libraries/AP_OSD/fonts/font0.bin
# define HAL_NAVEKF3_AVAILABLE 0

# save some flash
include ../include/save_some_flash.inc
include ../include/minimize_fpv_osd.inc
include ../include/no_bootloader_DFU.inc

Expand Down
1 change: 0 additions & 1 deletion libraries/AP_HAL_ChibiOS/hwdef/HEEWING-F405/hwdef.dat
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,5 @@ define HAL_WITH_DSP FALSE
define HAL_GYROFFT_ENABLED 0

include ../include/minimize_fpv_osd.inc
include ../include/save_some_flash.inc

AUTOBUILD_TARGETS Plane
1 change: 0 additions & 1 deletion libraries/AP_HAL_ChibiOS/hwdef/KakuteF4Mini/hwdef.dat
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ DMA_PRIORITY ADC* USART3* TIM3* TIM5* SPI3* SPI1*
DMA_NOSHARE SPI3_RX

# save some flash
include ../include/save_some_flash.inc
define HAL_PARACHUTE_ENABLED 0
define HAL_SPRAYER_ENABLED 0
define HAL_MOUNT_ENABLED 0
Expand Down
1 change: 0 additions & 1 deletion libraries/AP_HAL_ChibiOS/hwdef/KakuteF7Mini/hwdef.dat
Original file line number Diff line number Diff line change
Expand Up @@ -157,5 +157,4 @@ define HAL_SPRAYER_ENABLED 0
define HAL_MOUNT_ENABLED 0

# save some flash
include ../include/save_some_flash.inc
include ../include/minimize_fpv_osd.inc
1 change: 0 additions & 1 deletion libraries/AP_HAL_ChibiOS/hwdef/MatekF405-TE/hwdef.dat
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,6 @@ define HAL_GYROFFT_ENABLED 0
# --------------------- save flash ----------------------
# save some flash
include ../include/minimize_fpv_osd.inc
include ../include/save_some_flash.inc
include ../include/no_bootloader_DFU.inc

define HAL_PARACHUTE_ENABLED 0
Expand Down
1 change: 0 additions & 1 deletion libraries/AP_HAL_ChibiOS/hwdef/MatekF405-Wing/hwdef.dat
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,6 @@ ROMFS_WILDCARD libraries/AP_OSD/fonts/font0.bin
define HAL_GYROFFT_ENABLED 0

# save some flash
include ../include/save_some_flash.inc
define AP_GRIPPER_ENABLED 0
define HAL_PARACHUTE_ENABLED 0
define HAL_SPRAYER_ENABLED 0
Expand Down
1 change: 0 additions & 1 deletion libraries/AP_HAL_ChibiOS/hwdef/MatekF405/hwdef.dat
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,5 @@ define HAL_PARACHUTE_ENABLED 0
define HAL_SPRAYER_ENABLED 0

# save some flash
include ../include/save_some_flash.inc
include ../include/minimize_fpv_osd.inc

1 change: 0 additions & 1 deletion libraries/AP_HAL_ChibiOS/hwdef/ReaperF745/hwdef.dat
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,6 @@ define HAL_OSD_TYPE_DEFAULT 1
ROMFS_WILDCARD libraries/AP_OSD/fonts/font0.bin

# save some flash
include ../include/save_some_flash.inc
include ../include/minimize_fpv_osd.inc
define AP_GRIPPER_ENABLED 0
define HAL_PARACHUTE_ENABLED 0
Expand Down
9 changes: 5 additions & 4 deletions libraries/AP_HAL_ChibiOS/hwdef/VRUBrain-v51/hwdef.dat
Original file line number Diff line number Diff line change
Expand Up @@ -164,9 +164,10 @@ define HAL_BATT_CURR_PIN -1
define HAL_BATT_VOLT_SCALE 10.1
define HAL_BATT_CURR_SCALE 17.0

# save some flash
include ../include/save_some_flash.inc
define HAL_SPEKTRUM_TELEM_ENABLED 0

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

# save some flash
define AC_PRECLAND_ENABLED 0
define AP_ICENGINE_ENABLED 0
define AP_OPTICALFLOW_ENABLED 0
7 changes: 0 additions & 7 deletions libraries/AP_HAL_ChibiOS/hwdef/include/save_some_flash.inc

This file was deleted.

3 changes: 0 additions & 3 deletions libraries/AP_HAL_ChibiOS/hwdef/omnibusf4pro/hwdef.dat
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,4 @@ ROMFS_WILDCARD libraries/AP_OSD/fonts/font0.bin
define HAL_PARACHUTE_ENABLED 0
define HAL_SPRAYER_ENABLED 0

# save some flash
include ../include/save_some_flash.inc

include ../include/minimize_fpv_osd.inc
3 changes: 0 additions & 3 deletions libraries/AP_HAL_ChibiOS/hwdef/revo-mini-i2c-bdshot/hwdef.dat
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,3 @@ PA2 TIM2_CH3 TIM2 PWM(4) GPIO(53)

# bootloader embedding / bootloader flashing not available
define AP_BOOTLOADER_FLASHING_ENABLED 0

# save some flash
include ../include/save_some_flash.inc
3 changes: 0 additions & 3 deletions libraries/AP_HAL_ChibiOS/hwdef/revo-mini-sd/hwdef.dat
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,3 @@ define HAL_OS_FATFS_IO 1
define HAL_PARACHUTE_ENABLED 0

define HAL_GYROFFT_ENABLED 0

# save some flash
include ../include/save_some_flash.inc

0 comments on commit 813f0cf

Please sign in to comment.