Skip to content

Commit

Permalink
hwdef:free flash for space critical bds
Browse files Browse the repository at this point in the history
  • Loading branch information
Hwurzburg committed Oct 18, 2023
1 parent fb87369 commit d07419e
Show file tree
Hide file tree
Showing 12 changed files with 28 additions and 11 deletions.
2 changes: 2 additions & 0 deletions libraries/AP_HAL_ChibiOS/hwdef/F4BY/hwdef.dat
Original file line number Diff line number Diff line change
Expand Up @@ -162,3 +162,5 @@ PC9 EXTERN_GPIO5 OUTPUT GPIO(5)
# IRQ for MPU6000
PB0 EXTI_MPU6000 INPUT PULLUP
PB1 DRDY_HMC5883 INPUT PULLUP

AUTOBUILD_TARGETS Copter
2 changes: 2 additions & 0 deletions libraries/AP_HAL_ChibiOS/hwdef/FlyingMoonF407/hwdef.dat
Original file line number Diff line number Diff line change
Expand Up @@ -175,3 +175,5 @@ PE5 TIM9_CH1 TIM9 ALARM
# IRQ for MPU6000
PB0 DRDY_ICM20689 INPUT PULLUP
PB1 DRDY_IST8310 INPUT PULLUP

include ../include/minimize_common.inc
2 changes: 2 additions & 0 deletions libraries/AP_HAL_ChibiOS/hwdef/FlywooF405S-AIO/hwdef.dat
Original file line number Diff line number Diff line change
Expand Up @@ -152,3 +152,5 @@ define DEFAULT_NTF_LED_TYPES 257

# save some flash space
include ../include/no_bootloader_DFU.inc

AUTOBUILD_TARGETS Copter
4 changes: 3 additions & 1 deletion libraries/AP_HAL_ChibiOS/hwdef/JHEMCU-GSF405A-RX2/hwdef.dat
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,6 @@ PA3 TIM2_CH4 TIM2 PWM(3) GPIO(52)
PA2 TIM2_CH3 TIM2 PWM(4) GPIO(53) BIDIR

DMA_PRIORITY SPI1* SPI3* TIM1_CH2 TIM2_UP TIM3_UP
DMA_NOSHARE USART2*
DMA_NOSHARE USART2*

AUTOBUILD_TARGETS Copter
2 changes: 2 additions & 0 deletions libraries/AP_HAL_ChibiOS/hwdef/JHEMCU-GSF405A/hwdef.dat
Original file line number Diff line number Diff line change
Expand Up @@ -169,3 +169,5 @@ define HAL_BUTTON_ENABLED 0
define AP_NOTIFY_OREOLED_ENABLED 0
define HAL_PICCOLO_CAN_ENABLE 0
define BARO_MAX_INSTANCES 1

AUTOBUILD_TARGETS Copter
1 change: 1 addition & 0 deletions libraries/AP_HAL_ChibiOS/hwdef/KakuteF7/hwdef.dat
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,7 @@ define HAL_PARACHUTE_ENABLED 0

# save FLASH, but leave above when flash issue is fixed
include ../include/minimize_fpv_osd.inc
include ../include/no_bootloader_DFU.inc

# disable SMBUS battery monitors to save flash
undef AP_BATTERY_SMBUS_ENABLED
Expand Down
6 changes: 1 addition & 5 deletions libraries/AP_HAL_ChibiOS/hwdef/MatekF405/hwdef.dat
Original file line number Diff line number Diff line change
Expand Up @@ -156,9 +156,6 @@ define OSD_ENABLED 1
define HAL_OSD_TYPE_DEFAULT 1
ROMFS_WILDCARD libraries/AP_OSD/fonts/font0.bin

# disable SMBUS battery monitors to save flash
define AP_BATTERY_SMBUS_ENABLED 0

# disable parachute and sprayer to save flash
define HAL_PARACHUTE_ENABLED 0
define HAL_SPRAYER_ENABLED 0
Expand All @@ -168,6 +165,5 @@ define AP_PARAM_MAX_EMBEDDED_PARAM 1024

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

# only include ublox GPS driver
include ../include/minimal_GPS.inc
4 changes: 3 additions & 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,7 @@ 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

AUTOBUILD_TARGETS Copter
4 changes: 4 additions & 0 deletions libraries/AP_HAL_ChibiOS/hwdef/crazyflie2/hwdef.dat
Original file line number Diff line number Diff line change
Expand Up @@ -121,3 +121,7 @@ define MAG_BOARD_ORIENTATION ROTATION_YAW_180

# no ADC pins
define HAL_USE_ADC FALSE

include ../include/minimize_fpv_osd.inc

AUTOBUILD_TARGETS Copter
2 changes: 2 additions & 0 deletions libraries/AP_HAL_ChibiOS/hwdef/mini-pix/hwdef.dat
Original file line number Diff line number Diff line change
Expand Up @@ -148,3 +148,5 @@ define HAL_GPIO_C_LED_PIN 2
define HAL_GPIO_LED_ON 0
define HAL_GPIO_LED_OFF 1

include ../include/minimize_common.inc

5 changes: 3 additions & 2 deletions libraries/AP_HAL_ChibiOS/hwdef/speedybeef4/hwdef.dat
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,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

AUTOBUILD_TARGETS Copter
5 changes: 3 additions & 2 deletions libraries/AP_HAL_ChibiOS/hwdef/speedybeef4v3/hwdef.dat
Original file line number Diff line number Diff line change
Expand Up @@ -152,8 +152,9 @@ 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

define DEFAULT_NTF_LED_TYPES 257

AUTOBUILD_TARGETS Copter

0 comments on commit d07419e

Please sign in to comment.