1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-13 11:29:58 +03:00

Add support for IIM42652 (#14424)

This commit is contained in:
Mark Haslinghuis 2025-06-11 01:47:01 +02:00 committed by GitHub
parent 1b1648d135
commit ec91238cd8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
9 changed files with 36 additions and 11 deletions

View file

@ -218,9 +218,10 @@ retry:
FALLTHROUGH;
#endif
#if defined(USE_ACC_SPI_ICM42605) || defined(USE_ACC_SPI_ICM42688P) || defined(USE_ACCGYRO_IIM42653)
#if defined(USE_ACC_SPI_ICM42605) || defined(USE_ACC_SPI_ICM42688P) || defined(USE_ACCGYRO_IIM42652) || defined(USE_ACCGYRO_IIM42653)
case ACC_ICM42605:
case ACC_ICM42688P:
case ACC_IIM42652:
case ACC_IIM42653:
if (icm426xxSpiAccDetect(dev)) {
switch (dev->mpuDetectionResult.sensor) {
@ -230,6 +231,9 @@ retry:
case ICM_42688P_SPI:
accHardware = ACC_ICM42688P;
break;
case IIM_42652_SPI:
accHardware = ACC_IIM42652;
break;
case IIM_42653_SPI:
accHardware = ACC_IIM42653;
break;