mirror of https://github.com/ArduPilot/ardupilot
AP_HAL_ChibiOS: remove redundant lines from hwdef files
This commit is contained in:
parent
335db007e9
commit
0e6bca92f7
|
@ -58,6 +58,3 @@ IMU BMI270 SPI:bmi270 ROTATION_ROLL_180_YAW_225
|
||||||
|
|
||||||
# v2 has no BARO
|
# v2 has no BARO
|
||||||
define HAL_BARO_ALLOW_INIT_NO_BARO 1
|
define HAL_BARO_ALLOW_INIT_NO_BARO 1
|
||||||
|
|
||||||
# save some flash
|
|
||||||
include ../include/minimize_fpv_osd.inc
|
|
||||||
|
|
|
@ -170,7 +170,6 @@ define HAL_DEFAULT_AIRSPEED_PIN 10
|
||||||
|
|
||||||
# -------reduce max size of embedded params for apj_tool.py
|
# -------reduce max size of embedded params for apj_tool.py
|
||||||
define AP_PARAM_MAX_EMBEDDED_PARAM 1024
|
define AP_PARAM_MAX_EMBEDDED_PARAM 1024
|
||||||
define HAL_GYROFFT_ENABLED 0
|
|
||||||
|
|
||||||
# --------------------- save flash ----------------------
|
# --------------------- save flash ----------------------
|
||||||
# save some flash
|
# save some flash
|
||||||
|
|
|
@ -155,9 +155,6 @@ define HAL_BATT_CURR_PIN 12
|
||||||
define HAL_BATT_VOLT_SCALE 11
|
define HAL_BATT_VOLT_SCALE 11
|
||||||
define HAL_BATT_CURR_SCALE 25
|
define HAL_BATT_CURR_SCALE 25
|
||||||
|
|
||||||
# minimal drivers to reduce flash usage
|
|
||||||
include ../include/no_bootloader_DFU.inc
|
|
||||||
|
|
||||||
# enable IMU fast sampling
|
# enable IMU fast sampling
|
||||||
define HAL_DEFAULT_INS_FAST_SAMPLE 1
|
define HAL_DEFAULT_INS_FAST_SAMPLE 1
|
||||||
|
|
||||||
|
|
|
@ -154,7 +154,6 @@ define HAL_BATT_CURR_SCALE 26.7
|
||||||
#define HAL_DEFAULT_AIRSPEED_PIN 10
|
#define HAL_DEFAULT_AIRSPEED_PIN 10
|
||||||
|
|
||||||
define HAL_WITH_DSP FALSE
|
define HAL_WITH_DSP FALSE
|
||||||
define HAL_GYROFFT_ENABLED 0
|
|
||||||
|
|
||||||
include ../include/minimize_fpv_osd.inc
|
include ../include/minimize_fpv_osd.inc
|
||||||
|
|
||||||
|
|
|
@ -152,9 +152,6 @@ ROMFS_WILDCARD libraries/AP_OSD/fonts/font0.bin
|
||||||
|
|
||||||
# disable parachute and sprayer to save flash
|
# disable parachute and sprayer to save flash
|
||||||
define HAL_PARACHUTE_ENABLED 0
|
define HAL_PARACHUTE_ENABLED 0
|
||||||
define HAL_SPRAYER_ENABLED 0
|
|
||||||
|
|
||||||
define HAL_MOUNT_ENABLED 0
|
|
||||||
|
|
||||||
# save some flash
|
# save some flash
|
||||||
include ../include/minimize_fpv_osd.inc
|
include ../include/minimize_fpv_osd.inc
|
||||||
|
|
|
@ -10,5 +10,3 @@ SPIDEV bmi270 SPI4 DEVID1 MPU6000_CS MODE3 1*MHZ 4*MHZ
|
||||||
IMU BMI270 SPI:bmi270 ROTATION_PITCH_180_YAW_90
|
IMU BMI270 SPI:bmi270 ROTATION_PITCH_180_YAW_90
|
||||||
|
|
||||||
define HAL_LOGGING_DATAFLASH_DRIVER AP_Logger_W25N01GV
|
define HAL_LOGGING_DATAFLASH_DRIVER AP_Logger_W25N01GV
|
||||||
|
|
||||||
define DEFAULT_NTF_LED_TYPES 257
|
|
||||||
|
|
|
@ -161,7 +161,6 @@ define HAL_BATT2_VOLT_SCALE 11.0
|
||||||
|
|
||||||
# --------------------- save flash ----------------------
|
# --------------------- save flash ----------------------
|
||||||
include ../include/minimize_features.inc
|
include ../include/minimize_features.inc
|
||||||
include ../include/minimal_GPS.inc
|
|
||||||
|
|
||||||
undef AP_BATTERY_SMBUS_ENABLED
|
undef AP_BATTERY_SMBUS_ENABLED
|
||||||
define AP_BATTERY_SMBUS_ENABLED 0
|
define AP_BATTERY_SMBUS_ENABLED 0
|
||||||
|
|
|
@ -166,8 +166,6 @@ define HAL_BATT_CURR_SCALE 66.7
|
||||||
define BOARD_RSSI_ANA_PIN 8
|
define BOARD_RSSI_ANA_PIN 8
|
||||||
define HAL_DEFAULT_AIRSPEED_PIN 10
|
define HAL_DEFAULT_AIRSPEED_PIN 10
|
||||||
|
|
||||||
define HAL_GYROFFT_ENABLED 0
|
|
||||||
|
|
||||||
# --------------------- save flash ----------------------
|
# --------------------- save flash ----------------------
|
||||||
# save some flash
|
# save some flash
|
||||||
include ../include/minimize_fpv_osd.inc
|
include ../include/minimize_fpv_osd.inc
|
||||||
|
|
|
@ -180,18 +180,10 @@ define OSD_ENABLED 1
|
||||||
define HAL_OSD_TYPE_DEFAULT 1
|
define HAL_OSD_TYPE_DEFAULT 1
|
||||||
ROMFS_WILDCARD libraries/AP_OSD/fonts/font0.bin
|
ROMFS_WILDCARD libraries/AP_OSD/fonts/font0.bin
|
||||||
|
|
||||||
define HAL_GYROFFT_ENABLED 0
|
|
||||||
|
|
||||||
# save some flash
|
# save some flash
|
||||||
define AP_GRIPPER_ENABLED 0
|
|
||||||
define HAL_PARACHUTE_ENABLED 0
|
define HAL_PARACHUTE_ENABLED 0
|
||||||
define HAL_SPRAYER_ENABLED 0
|
|
||||||
define HAL_RUNCAM_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 HAL_BUTTON_ENABLED 0
|
||||||
define AP_NOTIFY_OREOLED_ENABLED 0
|
|
||||||
define HAL_PICCOLO_CAN_ENABLE 0
|
|
||||||
|
|
||||||
include ../include/minimize_fpv_osd.inc
|
include ../include/minimize_fpv_osd.inc
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
# Bi-directional dshot version of MatekF405
|
# Bi-directional dshot version of MatekF405
|
||||||
|
|
||||||
include ../MatekF405/hwdef.dat
|
include ../MatekF405/hwdef.dat
|
||||||
include ../include/minimal_GPS.inc
|
|
||||||
|
|
||||||
undef PC6 PC9 PA8
|
undef PC6 PC9 PA8
|
||||||
|
|
||||||
|
|
|
@ -156,9 +156,8 @@ define OSD_ENABLED 1
|
||||||
define HAL_OSD_TYPE_DEFAULT 1
|
define HAL_OSD_TYPE_DEFAULT 1
|
||||||
ROMFS_WILDCARD libraries/AP_OSD/fonts/font0.bin
|
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_PARACHUTE_ENABLED 0
|
||||||
define HAL_SPRAYER_ENABLED 0
|
|
||||||
|
|
||||||
# save some flash
|
# save some flash
|
||||||
include ../include/minimize_fpv_osd.inc
|
include ../include/minimize_fpv_osd.inc
|
||||||
|
|
|
@ -146,7 +146,5 @@ define HAL_OSD_TYPE_DEFAULT 1
|
||||||
#font for the osd
|
#font for the osd
|
||||||
ROMFS_WILDCARD libraries/AP_OSD/fonts/font*.bin
|
ROMFS_WILDCARD libraries/AP_OSD/fonts/font*.bin
|
||||||
|
|
||||||
define HAL_MOUNT_ENABLED 0
|
|
||||||
|
|
||||||
# minimal drivers to reduce flash usage
|
# minimal drivers to reduce flash usage
|
||||||
include ../include/minimize_fpv_osd.inc
|
include ../include/minimize_fpv_osd.inc
|
||||||
|
|
|
@ -3,9 +3,8 @@
|
||||||
|
|
||||||
include ../Pixhawk1/hwdef.dat
|
include ../Pixhawk1/hwdef.dat
|
||||||
|
|
||||||
# only include UBLOX and NMEA GPS drivers
|
# include NMEA GPS driver
|
||||||
define AP_GPS_NMEA_ENABLED 1
|
define AP_GPS_NMEA_ENABLED 1
|
||||||
include ../include/minimal_GPS.inc
|
|
||||||
|
|
||||||
FLASH_SIZE_KB 1024
|
FLASH_SIZE_KB 1024
|
||||||
include ../include/minimize_features.inc
|
include ../include/minimize_features.inc
|
||||||
|
@ -18,3 +17,4 @@ define BOARD_CHECK_F427_USE_2M "2M flash - use Pixhawk1 firmware"
|
||||||
undef ROMFS
|
undef ROMFS
|
||||||
ROMFS io_firmware.bin Tools/IO_Firmware/iofirmware_lowpolh.bin
|
ROMFS io_firmware.bin Tools/IO_Firmware/iofirmware_lowpolh.bin
|
||||||
undef HAL_WITH_IO_MCU_DSHOT
|
undef HAL_WITH_IO_MCU_DSHOT
|
||||||
|
|
||||||
|
|
|
@ -126,7 +126,6 @@ ROMFS_WILDCARD libraries/AP_OSD/fonts/font*.bin
|
||||||
|
|
||||||
# disable parachute and sprayer to save flash
|
# disable parachute and sprayer to save flash
|
||||||
define HAL_PARACHUTE_ENABLED 0
|
define HAL_PARACHUTE_ENABLED 0
|
||||||
define HAL_SPRAYER_ENABLED 0
|
|
||||||
|
|
||||||
# minimal drivers to reduce flash usage
|
# minimal drivers to reduce flash usage
|
||||||
include ../include/minimize_fpv_osd.inc
|
include ../include/minimize_fpv_osd.inc
|
||||||
|
|
|
@ -30,5 +30,4 @@ define HAL_MSP_ENABLED 0
|
||||||
|
|
||||||
# Copter-specific defines; these defines are only used in the Copter
|
# Copter-specific defines; these defines are only used in the Copter
|
||||||
# directory, but are seen across the entire codebase:
|
# directory, but are seen across the entire codebase:
|
||||||
define MODE_FLOWHOLD_ENABLED 0
|
|
||||||
define MODE_TURTLE_ENABLED 0
|
define MODE_TURTLE_ENABLED 0
|
||||||
|
|
|
@ -6,10 +6,9 @@ include minimize_common.inc
|
||||||
|
|
||||||
define AP_OPTICALFLOW_ENABLED 0
|
define AP_OPTICALFLOW_ENABLED 0
|
||||||
|
|
||||||
define AP_GPS_BACKEND_DEFAULT_ENABLED 0
|
# minimize_common.py removes backends except for a select few. Add
|
||||||
define AP_GPS_UBLOX_ENABLED 1
|
# some back in:
|
||||||
define AP_GPS_NMEA_ENABLED 1
|
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_DEFAULT_ENABLED 0
|
||||||
define AP_MOTORS_FRAME_QUAD_ENABLED 1
|
define AP_MOTORS_FRAME_QUAD_ENABLED 1
|
||||||
|
|
|
@ -2,7 +2,6 @@
|
||||||
# Buzzer timer is required so becomes single tone
|
# Buzzer timer is required so becomes single tone
|
||||||
|
|
||||||
include ../omnibusf4pro/hwdef.dat
|
include ../omnibusf4pro/hwdef.dat
|
||||||
include ../include/minimal_GPS.inc
|
|
||||||
|
|
||||||
undef PB0 PB1 PA3 PB4 PA2 PA1
|
undef PB0 PB1 PA3 PB4 PA2 PA1
|
||||||
|
|
||||||
|
|
|
@ -149,6 +149,5 @@ ROMFS_WILDCARD libraries/AP_OSD/fonts/font0.bin
|
||||||
|
|
||||||
# disable parachute and sprayer to save flash
|
# disable parachute and sprayer to save flash
|
||||||
define HAL_PARACHUTE_ENABLED 0
|
define HAL_PARACHUTE_ENABLED 0
|
||||||
define HAL_SPRAYER_ENABLED 0
|
|
||||||
|
|
||||||
include ../include/minimize_fpv_osd.inc
|
include ../include/minimize_fpv_osd.inc
|
||||||
|
|
|
@ -149,8 +149,6 @@ SPIDEV dataflash SPI3 DEVID1 FLASH_CS MODE3 32*MHZ 32*MHZ
|
||||||
# enable logging to dataflash
|
# enable logging to dataflash
|
||||||
define HAL_LOGGING_DATAFLASH_ENABLED 1
|
define HAL_LOGGING_DATAFLASH_ENABLED 1
|
||||||
|
|
||||||
define HAL_GYROFFT_ENABLED 0
|
|
||||||
|
|
||||||
# bootloader embedding / bootloader flashing not available
|
# bootloader embedding / bootloader flashing not available
|
||||||
define AP_BOOTLOADER_FLASHING_ENABLED 0
|
define AP_BOOTLOADER_FLASHING_ENABLED 0
|
||||||
include ../include/minimize_fpv_osd.inc
|
include ../include/minimize_fpv_osd.inc
|
||||||
|
|
|
@ -127,6 +127,4 @@ SPIDEV dataflash SPI3 DEVID1 FLASH_CS MODE3 32*MHZ 32*MHZ
|
||||||
# enable logging to dataflash
|
# enable logging to dataflash
|
||||||
define HAL_LOGGING_DATAFLASH_ENABLED 1
|
define HAL_LOGGING_DATAFLASH_ENABLED 1
|
||||||
|
|
||||||
define HAL_GYROFFT_ENABLED 0
|
|
||||||
|
|
||||||
include ../include/minimize_fpv_osd.inc
|
include ../include/minimize_fpv_osd.inc
|
||||||
|
|
|
@ -69,7 +69,6 @@ env BUILD_ABIN True
|
||||||
|
|
||||||
# Disable un-needed hardware drivers
|
# Disable un-needed hardware drivers
|
||||||
include ../include/skyviper.inc
|
include ../include/skyviper.inc
|
||||||
define AP_AIRSPEED_ENABLED 0
|
|
||||||
define AP_BEACON_ENABLED 0
|
define AP_BEACON_ENABLED 0
|
||||||
define AP_OPTICALFLOW_ENABLED 0
|
define AP_OPTICALFLOW_ENABLED 0
|
||||||
define AP_FRSKY_TELEM_ENABLED 0
|
define AP_FRSKY_TELEM_ENABLED 0
|
||||||
|
|
Loading…
Reference in New Issue