Skip to content

Commit

Permalink
AP_HAL_ChibiOS: adjust hwdat files for SPL06 rename
Browse files Browse the repository at this point in the history
  • Loading branch information
radiolinkW committed Aug 29, 2024
1 parent 1c18313 commit f3a351f
Show file tree
Hide file tree
Showing 16 changed files with 23 additions and 23 deletions.
2 changes: 1 addition & 1 deletion libraries/AP_HAL_ChibiOS/hwdef/AtomRCF405NAVI/hwdef.dat
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ FLASH_RESERVE_START_KB 64
IMU BMI270 SPI:bmi270 ROTATION_PITCH_180

# I2C BMP280 or SPL06
BARO SPL06 I2C:0:0x76
BARO SPx06 I2C:0:0x76
BARO BMP280 I2C:0:0x76

# no built-in compass, but probe the i2c bus for all possible
Expand Down
2 changes: 1 addition & 1 deletion libraries/AP_HAL_ChibiOS/hwdef/FlyingMoonF427/hwdef.dat
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ IMU Invensensev2 SPI:icm20649 ROTATION_NONE
IMU Invensensev3 SPI:icm42605 ROTATION_ROLL_180_YAW_90

# Two baro
BARO SPL06 I2C:0:0x76
BARO SPx06 I2C:0:0x76
BARO MS56XX I2C:0:0x77

# compass
Expand Down
2 changes: 1 addition & 1 deletion libraries/AP_HAL_ChibiOS/hwdef/FlyingMoonH743/hwdef.dat
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ IMU Invensensev2 SPI:icm20649 ROTATION_NONE
IMU Invensensev3 SPI:icm42605 ROTATION_ROLL_180_YAW_90

# Two baro
BARO SPL06 I2C:0:0x76
BARO SPx06 I2C:0:0x76
BARO MS56XX I2C:0:0x77

# compass
Expand Down
4 changes: 2 additions & 2 deletions libraries/AP_HAL_ChibiOS/hwdef/FlywooF745/hwdef.dat
Original file line number Diff line number Diff line change
Expand Up @@ -148,9 +148,9 @@ define HAL_DEFAULT_INS_FAST_SAMPLE 1

# one BARO
BARO BMP280 I2C:0:0x76
BARO SPL06 I2C:0:0x76
BARO SPx06 I2C:0:0x76
define AP_BARO_BACKEND_DEFAULT_ENABLED 0
define AP_BARO_SPL06_ENABLED 1
define AP_BARO_SPx06_ENABLED 1
define AP_BARO_BMP280_ENABLED 1

# setup for OSD
Expand Down
2 changes: 1 addition & 1 deletion libraries/AP_HAL_ChibiOS/hwdef/HEEWING-F405/hwdef.dat
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ define HAL_I2C_INTERNAL_MASK 0
define HAL_COMPASS_AUTO_ROT_DEFAULT 2

# built-in barometer
BARO SPL06 I2C:0:0x77
BARO SPx06 I2C:0:0x77


# --------------------- ADC ---------------------------
Expand Down
2 changes: 1 addition & 1 deletion libraries/AP_HAL_ChibiOS/hwdef/IFLIGHT_2RAW_H7/hwdef.dat
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ define HAL_GPIO_A_LED_PIN 90
PE4 LED1 OUTPUT LOW GPIO(91)
define HAL_GPIO_B_LED_PIN 91

BARO SPL06 I2C:1:0x76
BARO SPx06 I2C:1:0x76

# SPI setup
SPIDEV imu1 SPI1 DEVID1 GYRO1_CS MODE3 1*MHZ 16*MHZ
Expand Down
4 changes: 2 additions & 2 deletions libraries/AP_HAL_ChibiOS/hwdef/MambaF405-2022/hwdef.dat
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ SPIDEV icm42688 SPI1 DEVID2 MPU6000_CS MODE3 1*MHZ 8*MHZ
IMU Invensensev3 SPI:icm42688 ROTATION_ROLL_180_YAW_270

# enable SPL06 baro
BARO SPL06 I2C:0:0x76
define AP_BARO_SPL06_ENABLED 1
BARO SPx06 I2C:0:0x76
define AP_BARO_SPx06_ENABLED 1

define DEFAULT_NTF_LED_TYPES 257
2 changes: 1 addition & 1 deletion libraries/AP_HAL_ChibiOS/hwdef/MambaH743v4/hwdef.dat
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ define HAL_LOGGING_DATAFLASH_DRIVER AP_Logger_W25NXX

# DPS280 or SPL06 integrated on I2C bus
BARO DPS280 I2C:0:0x76
BARO SPL06 I2C:0:0x76
BARO SPx06 I2C:0:0x76

# setup for OSD
define OSD_ENABLED 1
Expand Down
4 changes: 2 additions & 2 deletions libraries/AP_HAL_ChibiOS/hwdef/MatekF405-TE/hwdef.dat
Original file line number Diff line number Diff line change
Expand Up @@ -145,9 +145,9 @@ define HAL_PROBE_EXTERNAL_I2C_COMPASSES
define HAL_COMPASS_AUTO_ROT_DEFAULT 2

# built-in barometer
BARO SPL06 I2C:0:0x76
BARO SPx06 I2C:0:0x76
define AP_BARO_BACKEND_DEFAULT_ENABLED 0
define AP_BARO_SPL06_ENABLED 1
define AP_BARO_SPx06_ENABLED 1


# --------------------- ADC ---------------------------
Expand Down
2 changes: 1 addition & 1 deletion libraries/AP_HAL_ChibiOS/hwdef/MatekL431-Periph/hwdef.dat
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ COMPASS QMC5883L I2C:0:0xd false ROTATION_PITCH_180_YAW_90
define HAL_PERIPH_ENABLE_BARO
define HAL_BARO_ALLOW_INIT_NO_BARO

BARO SPL06 I2C:0:0x76
BARO SPx06 I2C:0:0x76

# ------------------ I2C airspeed -------------------------
define HAL_PERIPH_ENABLE_AIRSPEED
Expand Down
2 changes: 1 addition & 1 deletion libraries/AP_HAL_ChibiOS/hwdef/MicoAir405v2/hwdef.dat
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ define HAL_COMPASS_AUTO_ROT_DEFAULT 2

# imu & baro
IMU BMI088 SPI:bmi088_a SPI:bmi088_g ROTATION_ROLL_180_YAW_270
BARO SPL06 SPI:spl06
BARO SPx06 SPI:spl06

# SPI devices
SPIDEV osd SPI1 DEVID4 AT7456E_CS MODE0 10*MHZ 10*MHZ
Expand Down
2 changes: 1 addition & 1 deletion libraries/AP_HAL_ChibiOS/hwdef/R9Pilot/hwdef.dat
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ define HAL_DEFAULT_INS_FAST_SAMPLE 3

# one BARO, multiple possible choices for different
# board variants
BARO SPL06 SPI:spl06
BARO SPx06 SPI:spl06

# dummy for testing
# BARO Dummy
Expand Down
4 changes: 2 additions & 2 deletions libraries/AP_HAL_ChibiOS/hwdef/RadiolinkPIX6/hwdef.dat
Original file line number Diff line number Diff line change
Expand Up @@ -186,8 +186,8 @@ define HAL_COMPASS_DISABLE_IST8310_INTERNAL_PROBE
COMPASS IST8310 I2C:ALL_INTERNAL:0x0E false ROTATION_YAW_180

# one baro
BARO SPL06 I2C:0:0x76
BARO SPA06 I2C:0:0x76
BARO SPx06 I2C:0:0x76
define SPx06_BACKGROUND_ENABLE

# microSD support
PC8 SDMMC_D0 SDMMC1
Expand Down
4 changes: 2 additions & 2 deletions libraries/AP_HAL_ChibiOS/hwdef/SpeedyBeeF405WING/hwdef.dat
Original file line number Diff line number Diff line change
Expand Up @@ -137,9 +137,9 @@ IMU Invensensev3 SPI:icm42605 ROTATION_ROLL_180_YAW_270
define HAL_DEFAULT_INS_FAST_SAMPLE 1

# one baro
BARO SPL06 I2C:0:0x76
BARO SPx06 I2C:0:0x76
define AP_BARO_BACKEND_DEFAULT_ENABLED 0
define AP_BARO_SPL06_ENABLED 1
define AP_BARO_SPx06_ENABLED 1

# no built-in compass, but probe the i2c bus for all possible
# external compass types
Expand Down
4 changes: 2 additions & 2 deletions libraries/AP_HAL_ChibiOS/hwdef/speedybeef4v3/hwdef.dat
Original file line number Diff line number Diff line change
Expand Up @@ -126,9 +126,9 @@ FLASH_RESERVE_START_KB 48
IMU BMI270 SPI:bmi270 ROTATION_ROLL_180

# built-in barometer
BARO SPL06 I2C:0:0x76
BARO SPx06 I2C:0:0x76
define AP_BARO_BACKEND_DEFAULT_ENABLED 0
define AP_BARO_SPL06_ENABLED 1
define AP_BARO_SPx06_ENABLED 1

# no built-in compass, but probe the i2c bus for all possible
# external compass types
Expand Down
4 changes: 2 additions & 2 deletions libraries/AP_HAL_ChibiOS/hwdef/speedybeef4v4/hwdef.dat
Original file line number Diff line number Diff line change
Expand Up @@ -134,8 +134,8 @@ ROMFS_WILDCARD libraries/AP_OSD/fonts/font*.bin

# Barometer setup
define AP_BARO_BACKEND_DEFAULT_ENABLED 0
define AP_BARO_SPL06_ENABLED 1
BARO SPL06 I2C:0:0x76
define AP_BARO_SPx06_ENABLED 1
BARO SPx06 I2C:0:0x76

# IMU setup
SPIDEV imu1 SPI1 DEVID1 GYRO1_CS MODE3 1*MHZ 8*MHZ
Expand Down

0 comments on commit f3a351f

Please sign in to comment.