Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lint hwdef include files #26736

Merged
merged 1 commit into from
Apr 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions libraries/AP_HAL_ChibiOS/hwdef/BeastF7v2/hwdef.dat
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,3 @@ IMU BMI270 SPI:bmi270 ROTATION_ROLL_180_YAW_225

# v2 has no BARO
define HAL_BARO_ALLOW_INIT_NO_BARO 1

# save some flash
include ../include/minimize_fpv_osd.inc
1 change: 0 additions & 1 deletion libraries/AP_HAL_ChibiOS/hwdef/CSKY405/hwdef.dat
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,6 @@ define HAL_DEFAULT_AIRSPEED_PIN 10

# -------reduce max size of embedded params for apj_tool.py
define AP_PARAM_MAX_EMBEDDED_PARAM 1024
define HAL_GYROFFT_ENABLED 0

# --------------------- save flash ----------------------
# save some flash
Expand Down
3 changes: 0 additions & 3 deletions libraries/AP_HAL_ChibiOS/hwdef/F35Lightning/hwdef.dat
Original file line number Diff line number Diff line change
Expand Up @@ -155,9 +155,6 @@ define HAL_BATT_CURR_PIN 12
define HAL_BATT_VOLT_SCALE 11
define HAL_BATT_CURR_SCALE 25

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

# enable IMU fast sampling
define HAL_DEFAULT_INS_FAST_SAMPLE 1

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 @@ -154,7 +154,6 @@ define HAL_BATT_CURR_SCALE 26.7
#define HAL_DEFAULT_AIRSPEED_PIN 10

define HAL_WITH_DSP FALSE
define HAL_GYROFFT_ENABLED 0

include ../include/minimize_fpv_osd.inc

Expand Down
3 changes: 0 additions & 3 deletions libraries/AP_HAL_ChibiOS/hwdef/KakuteF7Mini/hwdef.dat
Original file line number Diff line number Diff line change
Expand Up @@ -152,9 +152,6 @@ ROMFS_WILDCARD libraries/AP_OSD/fonts/font0.bin

# disable parachute and sprayer to save flash
define HAL_PARACHUTE_ENABLED 0
define HAL_SPRAYER_ENABLED 0

define HAL_MOUNT_ENABLED 0

# save some flash
include ../include/minimize_fpv_osd.inc
2 changes: 0 additions & 2 deletions libraries/AP_HAL_ChibiOS/hwdef/KakuteH7Mini-Nand/hwdef.dat
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,3 @@ SPIDEV bmi270 SPI4 DEVID1 MPU6000_CS MODE3 1*MHZ 4*MHZ
IMU BMI270 SPI:bmi270 ROTATION_PITCH_180_YAW_90

define HAL_LOGGING_DATAFLASH_DRIVER AP_Logger_W25N01GV

define DEFAULT_NTF_LED_TYPES 257
1 change: 0 additions & 1 deletion libraries/AP_HAL_ChibiOS/hwdef/MatekF405-CAN/hwdef.dat
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,6 @@ define HAL_BATT2_VOLT_SCALE 11.0

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

undef AP_BATTERY_SMBUS_ENABLED
define AP_BATTERY_SMBUS_ENABLED 0
Expand Down
2 changes: 0 additions & 2 deletions libraries/AP_HAL_ChibiOS/hwdef/MatekF405-TE/hwdef.dat
Original file line number Diff line number Diff line change
Expand Up @@ -166,8 +166,6 @@ define HAL_BATT_CURR_SCALE 66.7
define BOARD_RSSI_ANA_PIN 8
define HAL_DEFAULT_AIRSPEED_PIN 10

define HAL_GYROFFT_ENABLED 0

# --------------------- save flash ----------------------
# save some flash
include ../include/minimize_fpv_osd.inc
Expand Down
8 changes: 0 additions & 8 deletions libraries/AP_HAL_ChibiOS/hwdef/MatekF405-Wing/hwdef.dat
Original file line number Diff line number Diff line change
Expand Up @@ -180,18 +180,10 @@ define OSD_ENABLED 1
define HAL_OSD_TYPE_DEFAULT 1
ROMFS_WILDCARD libraries/AP_OSD/fonts/font0.bin

define HAL_GYROFFT_ENABLED 0

# save some flash
define AP_GRIPPER_ENABLED 0
define HAL_PARACHUTE_ENABLED 0
define HAL_SPRAYER_ENABLED 0
define HAL_RUNCAM_ENABLED 0
define HAL_HOTT_TELEM_ENABLED 0
define HAL_NMEA_OUTPUT_ENABLED 0
define HAL_BUTTON_ENABLED 0
define AP_NOTIFY_OREOLED_ENABLED 0
define HAL_PICCOLO_CAN_ENABLE 0

include ../include/minimize_fpv_osd.inc

1 change: 0 additions & 1 deletion libraries/AP_HAL_ChibiOS/hwdef/MatekF405-bdshot/hwdef.dat
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
# Bi-directional dshot version of MatekF405

include ../MatekF405/hwdef.dat
include ../include/minimal_GPS.inc

undef PC6 PC9 PA8

Expand Down
3 changes: 1 addition & 2 deletions libraries/AP_HAL_ChibiOS/hwdef/MatekF405/hwdef.dat
Original file line number Diff line number Diff line change
Expand Up @@ -156,9 +156,8 @@ define OSD_ENABLED 1
define HAL_OSD_TYPE_DEFAULT 1
ROMFS_WILDCARD libraries/AP_OSD/fonts/font0.bin

# disable parachute and sprayer to save flash
# disable parachute to save flash
define HAL_PARACHUTE_ENABLED 0
define HAL_SPRAYER_ENABLED 0

# save some flash
include ../include/minimize_fpv_osd.inc
Expand Down
2 changes: 0 additions & 2 deletions libraries/AP_HAL_ChibiOS/hwdef/OmnibusNanoV6/hwdef.dat
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,5 @@ define HAL_OSD_TYPE_DEFAULT 1
#font for the osd
ROMFS_WILDCARD libraries/AP_OSD/fonts/font*.bin

define HAL_MOUNT_ENABLED 0

# minimal drivers to reduce flash usage
include ../include/minimize_fpv_osd.inc
6 changes: 3 additions & 3 deletions libraries/AP_HAL_ChibiOS/hwdef/Pixhawk1-1M/hwdef.dat
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,8 @@

include ../Pixhawk1/hwdef.dat

# only include UBLOX and NMEA GPS drivers
# include NMEA GPS driver
define AP_GPS_NMEA_ENABLED 1
include ../include/minimal_GPS.inc

FLASH_SIZE_KB 1024
include ../include/minimize_features.inc
Expand All @@ -17,4 +16,5 @@ define BOARD_CHECK_F427_USE_2M "2M flash - use Pixhawk1 firmware"
# enable support for dshot on iomcu
undef ROMFS
ROMFS io_firmware.bin Tools/IO_Firmware/iofirmware_lowpolh.bin
undef HAL_WITH_IO_MCU_DSHOT
undef HAL_WITH_IO_MCU_DSHOT

1 change: 0 additions & 1 deletion libraries/AP_HAL_ChibiOS/hwdef/SuccexF4/hwdef.dat
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,6 @@ ROMFS_WILDCARD libraries/AP_OSD/fonts/font*.bin

# disable parachute and sprayer to save flash
define HAL_PARACHUTE_ENABLED 0
define HAL_SPRAYER_ENABLED 0

# minimal drivers to reduce flash usage
include ../include/minimize_fpv_osd.inc
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,5 +30,4 @@ define HAL_MSP_ENABLED 0

# Copter-specific defines; these defines are only used in the Copter
# directory, but are seen across the entire codebase:
define MODE_FLOWHOLD_ENABLED 0
define MODE_TURTLE_ENABLED 0
5 changes: 2 additions & 3 deletions libraries/AP_HAL_ChibiOS/hwdef/include/minimize_fpv_osd.inc
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,9 @@ include minimize_common.inc

define AP_OPTICALFLOW_ENABLED 0

define AP_GPS_BACKEND_DEFAULT_ENABLED 0
define AP_GPS_UBLOX_ENABLED 1
# minimize_common.py removes backends except for a select few. Add
# some back in:
define AP_GPS_NMEA_ENABLED 1
define HAL_MSP_GPS_ENABLED HAL_MSP_SENSORS_ENABLED

define AP_MOTORS_FRAME_DEFAULT_ENABLED 0
define AP_MOTORS_FRAME_QUAD_ENABLED 1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
# Buzzer timer is required so becomes single tone

include ../omnibusf4pro/hwdef.dat
include ../include/minimal_GPS.inc

undef PB0 PB1 PA3 PB4 PA2 PA1

Expand Down
1 change: 0 additions & 1 deletion libraries/AP_HAL_ChibiOS/hwdef/omnibusf4pro/hwdef.dat
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,5 @@ ROMFS_WILDCARD libraries/AP_OSD/fonts/font0.bin

# disable parachute and sprayer to save flash
define HAL_PARACHUTE_ENABLED 0
define HAL_SPRAYER_ENABLED 0

include ../include/minimize_fpv_osd.inc
2 changes: 0 additions & 2 deletions libraries/AP_HAL_ChibiOS/hwdef/revo-mini-i2c/hwdef.dat
Original file line number Diff line number Diff line change
Expand Up @@ -149,8 +149,6 @@ SPIDEV dataflash SPI3 DEVID1 FLASH_CS MODE3 32*MHZ 32*MHZ
# enable logging to dataflash
define HAL_LOGGING_DATAFLASH_ENABLED 1

define HAL_GYROFFT_ENABLED 0

# bootloader embedding / bootloader flashing not available
define AP_BOOTLOADER_FLASHING_ENABLED 0
include ../include/minimize_fpv_osd.inc
Expand Down
2 changes: 0 additions & 2 deletions libraries/AP_HAL_ChibiOS/hwdef/revo-mini/hwdef.dat
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,4 @@ SPIDEV dataflash SPI3 DEVID1 FLASH_CS MODE3 32*MHZ 32*MHZ
# enable logging to dataflash
define HAL_LOGGING_DATAFLASH_ENABLED 1

define HAL_GYROFFT_ENABLED 0

include ../include/minimize_fpv_osd.inc
1 change: 0 additions & 1 deletion libraries/AP_HAL_ChibiOS/hwdef/skyviper-v2450/hwdef.dat
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,6 @@ env BUILD_ABIN True

# Disable un-needed hardware drivers
include ../include/skyviper.inc
define AP_AIRSPEED_ENABLED 0
define AP_BEACON_ENABLED 0
define AP_OPTICALFLOW_ENABLED 0
define AP_FRSKY_TELEM_ENABLED 0
Expand Down
Loading