diff --git a/src/main/target/MATEKF411RX/target.h b/src/main/target/MATEKF411RX/target.h index 25b100780c..5fd8ca03a1 100644 --- a/src/main/target/MATEKF411RX/target.h +++ b/src/main/target/MATEKF411RX/target.h @@ -50,33 +50,50 @@ #define MPU6000_CS_PIN PA4 #define ICM20689_CS_PIN MPU6000_CS_PIN +#define BMI270_CS_PIN MPU6000_CS_PIN +#define ICM42688P_CS_PIN MPU6000_CS_PIN #define MPU6000_SPI_INSTANCE SPI1 #define ICM20689_SPI_INSTANCE MPU6000_SPI_INSTANCE +#define BMI270_SPI_INSTANCE MPU6000_SPI_INSTANCE +#define ICM42688P_SPI_INSTANCE MPU6000_SPI_INSTANCE #define USE_EXTI #define MPU_INT_EXTI PA1 #define USE_MPU_DATA_READY_SIGNAL #define USE_GYRO +#define USE_SPI_GYRO #define USE_GYRO_SPI_MPU6000 #define USE_GYRO_SPI_ICM20689 +#define USE_ACCGYRO_BMI270 +#define USE_GYRO_SPI_ICM42688P + #if defined(CRAZYBEEF4FS) || defined(CRAZYBEEF4FR) || defined(CRAZYBEEF4DX) #define GYRO_MPU6000_ALIGN CW90_DEG #define GYRO_ICM20689_ALIGN CW90_DEG +#define GYRO_BMI270_ALIGN CW90_DEG +#define GYRO_ICM42688P_ALIGN CW90_DEG #else #define GYRO_MPU6000_ALIGN CW180_DEG #define GYRO_ICM20689_ALIGN CW180_DEG +#define GYRO_BMI270_ALIGN CW180_DEG +#define GYRO_ICM42688P_ALIGN CW180_DEG #endif #define USE_ACC #define USE_ACC_SPI_MPU6000 #define USE_ACC_SPI_ICM20689 +#define USE_ACC_SPI_ICM42688P #if defined(CRAZYBEEF4FS) || defined(CRAZYBEEF4FR) || defined(CRAZYBEEF4DX) #define ACC_MPU6000_ALIGN CW90_DEG #define ACC_ICM20689_ALIGN CW90_DEG +#define ACC_BMI270_ALIGN CW90_DEG +#define ACC_ICM42688P_ALIGN CW90_DEG #else #define ACC_MPU6000_ALIGN CW180_DEG #define ACC_ICM20689_ALIGN CW180_DEG +#define ACC_BMI270_ALIGN CW180_DEG +#define ACC_ICM42688P_ALIGN CW180_DEG #endif // *************** SPI2 OSD ***************************** #define USE_SPI_DEVICE_2 diff --git a/src/main/target/MATEKF411RX/target.mk b/src/main/target/MATEKF411RX/target.mk index df79c2e027..3803370cc6 100644 --- a/src/main/target/MATEKF411RX/target.mk +++ b/src/main/target/MATEKF411RX/target.mk @@ -5,6 +5,9 @@ FEATURES += VCP SDCARD TARGET_SRC = \ drivers/accgyro/accgyro_spi_mpu6000.c \ drivers/accgyro/accgyro_spi_icm20689.c \ + drivers/accgyro/accgyro_bmi270.c \ + drivers/accgyro/accgyro_spi_bmi270.c \ + drivers/accgyro/accgyro_spi_icm426xx.c \ drivers/max7456.c \ drivers/rx/rx_cc2500.c \ rx/cc2500_common.c \