mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-13 11:29:58 +03:00
Add IIM42653 IMU support (#14095)
* drivers: accgyro: iim42653 IMU support * reorder accgyro enums, update comment about IIM42653 * remove comma after VIRTUAL in enum
This commit is contained in:
parent
4a6e3bbe06
commit
7a44f1bdce
10 changed files with 51 additions and 19 deletions
|
@ -216,9 +216,10 @@ retry:
|
|||
FALLTHROUGH;
|
||||
#endif
|
||||
|
||||
#if defined(USE_ACC_SPI_ICM42605) || defined(USE_ACC_SPI_ICM42688P)
|
||||
#if defined(USE_ACC_SPI_ICM42605) || defined(USE_ACC_SPI_ICM42688P) || defined(USE_ACCGYRO_IIM42653)
|
||||
case ACC_ICM42605:
|
||||
case ACC_ICM42688P:
|
||||
case ACC_IIM42653:
|
||||
if (icm426xxSpiAccDetect(dev)) {
|
||||
switch (dev->mpuDetectionResult.sensor) {
|
||||
case ICM_42605_SPI:
|
||||
|
@ -227,6 +228,9 @@ retry:
|
|||
case ICM_42688P_SPI:
|
||||
accHardware = ACC_ICM42688P;
|
||||
break;
|
||||
case IIM_42653_SPI:
|
||||
accHardware = ACC_IIM42653;
|
||||
break;
|
||||
default:
|
||||
accHardware = ACC_NONE;
|
||||
break;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue