mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-08 17:08:28 -04:00
hwdef: remove extraneous lines from hwdef files
these either come from includes are duplicated in these files
This commit is contained in:
parent
395f438b42
commit
8fc76e7455
@ -3,8 +3,6 @@ include ../f103-periph/hwdef.inc
|
||||
# board ID for firmware load
|
||||
APJ_BOARD_ID 1104
|
||||
|
||||
define HAL_COMPASS_MAX_SENSORS 1
|
||||
|
||||
define HAL_AIRSPEED_BUS_DEFAULT 0
|
||||
|
||||
# 1 I2C-DLVRE1BD-10in sensor by default
|
||||
|
@ -3,8 +3,6 @@ include ../f103-periph/hwdef.inc
|
||||
# board ID for firmware load
|
||||
APJ_BOARD_ID 1077
|
||||
|
||||
define HAL_COMPASS_MAX_SENSORS 1
|
||||
|
||||
define HAL_AIRSPEED_BUS_DEFAULT 0
|
||||
|
||||
# 1 I2C-MS4525D0 sensor by default
|
||||
|
@ -160,6 +160,5 @@ define AP_PARAM_MAX_EMBEDDED_PARAM 256
|
||||
include ../include/minimize_fpv_osd.inc
|
||||
|
||||
define HAL_PARACHUTE_ENABLED 0
|
||||
define HAL_SPRAYER_ENABLED 0
|
||||
|
||||
|
||||
|
@ -61,5 +61,3 @@ define HAL_BARO_ALLOW_INIT_NO_BARO 1
|
||||
|
||||
# save some flash
|
||||
include ../include/minimize_fpv_osd.inc
|
||||
|
||||
define DEFAULT_NTF_LED_TYPES 257
|
||||
|
@ -20,7 +20,6 @@ PB4 TIM3_CH1 TIM3 PWM(2) GPIO(51) BIDIR # 2
|
||||
PB5 TIM3_CH2 TIM3 PWM(3) GPIO(52) # 3
|
||||
|
||||
I2C_ORDER I2C1 I2C2
|
||||
define HAL_I2C_INTERNAL_MASK 0
|
||||
|
||||
# order of UARTs (and USB)
|
||||
SERIAL_ORDER OTG1 USART1 USART2 USART3 UART4 EMPTY EMPTY UART7
|
||||
@ -61,5 +60,3 @@ IMU BMI270 SPI:bmi270 ROTATION_ROLL_180_YAW_225
|
||||
# Some boards have no baro, some have a DPS310 Baro on I2C1
|
||||
define HAL_BARO_ALLOW_INIT_NO_BARO 1
|
||||
BARO DPS310 I2C:0:0x76
|
||||
|
||||
define DEFAULT_NTF_LED_TYPES 257
|
||||
|
@ -9,6 +9,3 @@ PH10 TIM5_CH1 TIM5 PWM(1) GPIO(50) BIDIR
|
||||
PH12 TIM5_CH3 TIM5 PWM(3) GPIO(52) BIDIR
|
||||
PD12 TIM4_CH1 TIM4 PWM(5) GPIO(54) BIDIR
|
||||
PD14 TIM4_CH3 TIM4 PWM(7) GPIO(56) BIDIR
|
||||
|
||||
define DEFAULT_NTF_LED_TYPES 231
|
||||
|
||||
|
@ -15,7 +15,6 @@ define HAL_GPIO_A_LED_PIN 0
|
||||
define HAL_GPIO_B_LED_PIN 1
|
||||
define HAL_GPIO_C_LED_PIN 2
|
||||
|
||||
define HAL_GPIO_LED_ON 0
|
||||
define HAL_GPIO_LED_OFF 1
|
||||
|
||||
define HAL_HAVE_PIXRACER_LED
|
||||
|
@ -64,7 +64,4 @@ define HAL_GPIO_A_LED_PIN 0
|
||||
define HAL_GPIO_B_LED_PIN 1
|
||||
define HAL_GPIO_C_LED_PIN 2
|
||||
|
||||
define HAL_GPIO_LED_ON 0
|
||||
define HAL_GPIO_LED_OFF 1
|
||||
|
||||
define HAL_HAVE_PIXRACER_LED
|
||||
|
@ -239,7 +239,6 @@ PG2 HEATER_EN OUTPUT LOW GPIO(81)
|
||||
|
||||
define HAL_HEATER_GPIO_PIN 81
|
||||
# define HAL_HEATER_GPIO_PIN2 80
|
||||
define HAL_HAVE_IMU_HEATER 1
|
||||
|
||||
# Timer
|
||||
PE11 TIM1_CH2 TIM1 PWM(1) GPIO(50) BIDIR
|
||||
|
@ -26,8 +26,6 @@ FLASH_RESERVE_START_KB 128
|
||||
# order of UARTs (and USB)
|
||||
SERIAL_ORDER OTG1 USART2 USART3 USART1 UART4 USART6 UART7 OTG2
|
||||
|
||||
define HAL_STORAGE_SIZE 32768
|
||||
|
||||
define CONFIG_HAL_BOARD_SUBTYPE HAL_BOARD_SUBTYPE_CHIBIOS_FMUV5
|
||||
define HAL_CHIBIOS_ARCH_FMUV5 1
|
||||
define BOARD_TYPE_DEFAULT 24
|
||||
|
@ -26,5 +26,3 @@ DMA_PRIORITY USART1* I2C2* TIM1* TIM3*
|
||||
|
||||
define HAL_I2C_INTERNAL_MASK 1
|
||||
define HAL_FRAME_TYPE_DEFAULT 12
|
||||
|
||||
define DEFAULT_NTF_LED_TYPES 257
|
||||
|
@ -39,8 +39,6 @@ DMA_NOSHARE SPI3_RX
|
||||
|
||||
# save some flash
|
||||
define HAL_PARACHUTE_ENABLED 0
|
||||
define HAL_SPRAYER_ENABLED 0
|
||||
define HAL_MOUNT_ENABLED 0
|
||||
|
||||
undef DEFAULT_NTF_LED_TYPES
|
||||
define DEFAULT_NTF_LED_TYPES 257
|
||||
|
@ -67,6 +67,4 @@ define HAL_FRAME_TYPE_DEFAULT 12
|
||||
define HAL_LOGGING_DATAFLASH_ENABLED 1
|
||||
define HAL_LOGGING_DATAFLASH_DRIVER AP_Logger_W25N01GV
|
||||
|
||||
define DEFAULT_NTF_LED_TYPES 257
|
||||
|
||||
define AP_SCRIPTING_ENABLED 0
|
||||
|
@ -142,7 +142,6 @@ define HAL_OS_FATFS_IO 1
|
||||
# external compass types
|
||||
define ALLOW_ARM_NO_COMPASS
|
||||
define HAL_PROBE_EXTERNAL_I2C_COMPASSES
|
||||
define HAL_I2C_INTERNAL_MASK 0
|
||||
define HAL_COMPASS_AUTO_ROT_DEFAULT 2
|
||||
|
||||
# built-in barometer
|
||||
@ -176,12 +175,7 @@ include ../include/minimize_fpv_osd.inc
|
||||
include ../include/no_bootloader_DFU.inc
|
||||
|
||||
define HAL_PARACHUTE_ENABLED 0
|
||||
define HAL_SPRAYER_ENABLED 0
|
||||
define AP_GRIPPER_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
|
||||
|
||||
|
@ -17,8 +17,6 @@ env OPTIMIZE -O2
|
||||
|
||||
FLASH_RESERVE_START_KB 128
|
||||
|
||||
define HAL_STORAGE_SIZE 32768
|
||||
|
||||
# order of I2C buses
|
||||
I2C_ORDER I2C3 I2C2 I2C1
|
||||
|
||||
|
@ -194,7 +194,6 @@ define HAL_DEFAULT_INS_FAST_SAMPLE 5
|
||||
COMPASS IST8310 I2C:0:0x0E false ROTATION_ROLL_180_YAW_270
|
||||
COMPASS QMC5883L I2C:0:0x0D false ROTATION_ROLL_180_YAW_270
|
||||
define HAL_PROBE_EXTERNAL_I2C_COMPASSES
|
||||
define HAL_I2C_INTERNAL_MASK 1
|
||||
|
||||
|
||||
# LED setup is similar to PixRacer
|
||||
|
@ -145,8 +145,6 @@ ROMFS_WILDCARD libraries/AP_OSD/fonts/font0.bin
|
||||
|
||||
# save some flash
|
||||
include ../include/minimize_fpv_osd.inc
|
||||
define AP_GRIPPER_ENABLED 0
|
||||
define HAL_PARACHUTE_ENABLED 0
|
||||
define HAL_SPRAYER_ENABLED 0
|
||||
|
||||
include ../include/no_bootloader_DFU.inc
|
||||
|
@ -25,8 +25,6 @@ SERIAL_ORDER OTG1 USART2 EMPTY USART1 UART4 EMPTY UART7 OTG2
|
||||
# default the 2nd interface to MAVLink2
|
||||
define HAL_OTG2_PROTOCOL SerialProtocol_MAVLink2
|
||||
|
||||
define HAL_STORAGE_SIZE 32768
|
||||
|
||||
# USB
|
||||
PA11 OTG_FS_DM OTG1
|
||||
PA12 OTG_FS_DP OTG1
|
||||
|
@ -32,7 +32,6 @@ define HAL_BATT_CURR_SCALE 36.364
|
||||
# this board has a 16k RAMTROM
|
||||
undef HAL_STORAGE_SIZE
|
||||
define HAL_STORAGE_SIZE 16384
|
||||
define HAL_WITH_RAMTRON 1
|
||||
|
||||
# use a longer frame gap detector for more robust SBUS with H12 controller
|
||||
define HAL_SBUS_FRAME_GAP 5000U
|
||||
|
@ -22,8 +22,6 @@ env OPTIMIZE -O2
|
||||
|
||||
FLASH_RESERVE_START_KB 128
|
||||
|
||||
define HAL_STORAGE_SIZE 16384
|
||||
|
||||
# only one I2C bus
|
||||
I2C_ORDER I2C1
|
||||
NODMA I2C*
|
||||
@ -190,10 +188,9 @@ SPIDEV ramtron SPI2 DEVID10 FRAM_CS MODE3 8*MHZ 8*MHZ
|
||||
SPIDEV icm42605 SPI4 DEVID4 IMU_CS MODE3 2*MHZ 16*MHZ
|
||||
SPIDEV icm42688 SPI4 DEVID4 IMU_CS MODE3 2*MHZ 16*MHZ
|
||||
|
||||
define HAL_STORAGE_SIZE 16384
|
||||
|
||||
# enable RAMTROM parameter storage
|
||||
define HAL_WITH_RAMTRON 1
|
||||
define HAL_STORAGE_SIZE 16384
|
||||
|
||||
# fallback to flash is no FRAM fitted
|
||||
#define STORAGE_FLASH_PAGE 22
|
||||
|
@ -8,6 +8,3 @@ PB0 TIM3_CH3 TIM3 PWM(1) GPIO(50)
|
||||
PB1 TIM3_CH4 TIM3 PWM(2) GPIO(51) BIDIR
|
||||
PA3 TIM2_CH4 TIM2 PWM(3) GPIO(52) BIDIR
|
||||
PA2 TIM2_CH3 TIM2 PWM(4) GPIO(53)
|
||||
|
||||
# bootloader embedding / bootloader flashing not available
|
||||
define AP_BOOTLOADER_FLASHING_ENABLED 0
|
||||
|
@ -19,5 +19,3 @@ define HAL_OS_FATFS_IO 1
|
||||
|
||||
# disable parachute and sprayer to save flash
|
||||
define HAL_PARACHUTE_ENABLED 0
|
||||
|
||||
define HAL_GYROFFT_ENABLED 0
|
||||
|
@ -73,7 +73,6 @@ define AP_AIRSPEED_ENABLED 0
|
||||
define AP_BEACON_ENABLED 0
|
||||
define AP_OPTICALFLOW_ENABLED 0
|
||||
define AP_FRSKY_TELEM_ENABLED 0
|
||||
define AP_BEACON_ENABLED 0
|
||||
define HAL_ADSB_SAGETECH_ENABLED 0
|
||||
define HAL_ADSB_UAVIONIX_MAVLINK_ENABLED 0
|
||||
define AP_AIS_ENABLED 0
|
||||
|
Loading…
Reference in New Issue
Block a user