Skip to content

Commit

Permalink
AP_HAL_ChibiOS: Cube*: make SPI config same where possible to improve…
Browse files Browse the repository at this point in the history
… performance
  • Loading branch information
bugobliterator committed Sep 13, 2024
1 parent 5495593 commit c8da9c9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions libraries/AP_HAL_ChibiOS/hwdef/CubeOrangePlus/hwdef.dat
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,10 @@ COMPASS AK09916 I2C:2:0x0C false ROTATION_ROLL_180_YAW_225
PG1 ICM45686_CS CS

#IMU 0
SPIDEV icm42688_ext SPI4 DEVID4 ACCEL_EXT_CS MODE3 2*MHZ 8*MHZ
SPIDEV icm42688_ext SPI4 DEVID4 ACCEL_EXT_CS MODE3 20*MHZ 20*MHZ

#IMU 1
SPIDEV icm42688_ext2 SPI4 DEVID5 GYRO_EXT_CS MODE3 2*MHZ 8*MHZ
SPIDEV icm42688_ext2 SPI4 DEVID5 GYRO_EXT_CS MODE3 20*MHZ 20*MHZ

#IMU 2
SPIDEV icm45686 SPI1 DEVID4 ICM45686_CS MODE0 2*MHZ 8*MHZ
Expand Down
6 changes: 3 additions & 3 deletions libraries/AP_HAL_ChibiOS/hwdef/CubeRedPrimary/hwdef.dat
Original file line number Diff line number Diff line change
Expand Up @@ -105,15 +105,15 @@ PE5 SPI4_MISO SPI4
PE6 SPI4_MOSI SPI4

# Sensors
SPIDEV icm42688_0 SPI1 DEVID1 ICM42688_0_CS MODE3 2*MHZ 8*MHZ
SPIDEV icm42688_0 SPI1 DEVID1 ICM42688_0_CS MODE3 20*MHZ 20*MHZ
SPIDEV ms5611_0 SPI1 DEVID2 BARO_0_CS MODE3 20*MHZ 20*MHZ

SPIDEV icm42688_1 SPI2 DEVID1 ICM42688_1_CS MODE3 2*MHZ 8*MHZ
SPIDEV icm42688_1 SPI2 DEVID1 ICM42688_1_CS MODE3 8*MHZ 8*MHZ
SPIDEV rm3100 SPI2 DEVID2 RM3100_CS MODE3 1*MHZ 1*MHZ

SPIDEV icm20649 SPI4 DEVID1 ICM_2_CS MODE3 4*MHZ 8*MHZ
# alternative to icm20649
SPIDEV icm45686 SPI4 DEVID1 ICM_2_CS MODE3 2*MHZ 8*MHZ
SPIDEV icm45686 SPI4 DEVID1 ICM_2_CS MODE3 20*MHZ 20*MHZ
SPIDEV ms5611_1 SPI4 DEVID2 BARO_1_CS MODE3 20*MHZ 20*MHZ

IMU Invensensev3 SPI:icm42688_1 ROTATION_YAW_90
Expand Down

0 comments on commit c8da9c9

Please sign in to comment.