mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-15 20:35:33 +03:00
Add gate for ICM20602 (#12161)
This commit is contained in:
parent
1e3fcbfcee
commit
6793a8efea
1 changed files with 14 additions and 0 deletions
|
@ -269,6 +269,20 @@
|
|||
#undef USE_RX_LINK_UPLINK_POWER
|
||||
#endif
|
||||
|
||||
// Older ACC/GYRO sensors use MPU6500 driver
|
||||
#if !defined(USE_ACC_MPU6500) && (defined(USE_ACC_ICM20601) || defined(USE_ACC_ICM20602) || defined(USE_ACC_ICM20608G))
|
||||
#define USE_ACC_MPU6500
|
||||
#endif
|
||||
#if !defined(USE_ACC_SPI_MPU6500) && (defined(USE_ACC_SPI_ICM20601) || defined(USE_ACC_SPI_ICM20602) || defined(USE_ACC_SPI_ICM20608G))
|
||||
#define USE_ACC_SPI_MPU6500
|
||||
#endif
|
||||
#if !defined(USE_GYRO_MPU6500) && (defined(USE_GYRO_ICM20601) || defined(USE_GYRO_ICM20602) || defined(USE_GYRO_ICM20608G))
|
||||
#define USE_GYRO_MPU6500
|
||||
#endif
|
||||
#if !defined(USE_GYRO_SPI_MPU6500) && (defined(USE_GYRO_SPI_ICM20601) || defined(USE_GYRO_SPI_ICM20602) || defined(USE_GYRO_SPI_ICM20608G))
|
||||
#define USE_GYRO_SPI_MPU6500
|
||||
#endif
|
||||
|
||||
// Generate USE_SPI_GYRO or USE_I2C_GYRO
|
||||
#if defined(USE_GYRO_L3G4200D) || defined(USE_GYRO_MPU3050) || defined(USE_GYRO_MPU6000) || defined(USE_GYRO_MPU6050) || defined(USE_GYRO_MPU6500)
|
||||
#define USE_I2C_GYRO
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue