1
0
Fork 0
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:
Jacob Dahl 2025-01-14 12:11:25 -09:00 committed by GitHub
parent 4a6e3bbe06
commit 7a44f1bdce
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
10 changed files with 51 additions and 19 deletions

View file

@ -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;