Skip to content

Commit 060ac77

Browse files
Merge pull request #11014 from DusKing1/add-icm42688-for-skystarsh743hd
Added ICM42605 IMU support for SKYSTARSH743HD
2 parents 0988894 + 8f2cf99 commit 060ac77

2 files changed

Lines changed: 5 additions & 1 deletion

File tree

src/main/target/SKYSTARSH743HD/target.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,10 @@
2727
#include "drivers/sensor.h"
2828

2929
BUSDEV_REGISTER_SPI_TAG(busdev_bmi270_1, DEVHW_BMI270, IMU1_SPI_BUS, IMU1_CS_PIN, NONE, 0, DEVFLAGS_NONE, IMU1_ALIGN);
30-
BUSDEV_REGISTER_SPI_TAG(busdev_bmi270_2, DEVHW_BMI270, IMU2_SPI_BUS, IMU2_CS_PIN, NONE, 0, DEVFLAGS_NONE, IMU2_ALIGN);
30+
BUSDEV_REGISTER_SPI_TAG(busdev_bmi270_2, DEVHW_BMI270, IMU2_SPI_BUS, IMU2_CS_PIN, NONE, 1, DEVFLAGS_NONE, IMU2_ALIGN);
31+
32+
BUSDEV_REGISTER_SPI_TAG(busdev_icm42688_1, DEVHW_ICM42605, IMU1_SPI_BUS, IMU1_CS_PIN, NONE, 0, DEVFLAGS_NONE, IMU1_ALIGN);
33+
BUSDEV_REGISTER_SPI_TAG(busdev_icm42688_2, DEVHW_ICM42605, IMU2_SPI_BUS, IMU2_CS_PIN, NONE, 1, DEVFLAGS_NONE, IMU2_ALIGN);
3134

3235
timerHardware_t timerHardware[] = {
3336
DEF_TIM(TIM3, CH3, PB0, TIM_USE_OUTPUT_AUTO, 0, 0), // S1

src/main/target/SKYSTARSH743HD/target.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@
3535
#define USE_DUAL_GYRO
3636
#define USE_TARGET_IMU_HARDWARE_DESCRIPTORS
3737
#define USE_IMU_BMI270
38+
#define USE_IMU_ICM42605
3839
// *****IMU1 BMI270 ON SPI4 **************
3940
#define IMU1_ALIGN CW0_DEG
4041
#define IMU1_SPI_BUS BUS_SPI4

0 commit comments

Comments
 (0)