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:
parent
1b1648d135
commit
ec91238cd8
9 changed files with 36 additions and 11 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue