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

STMicro LSM6DSV16X IMU support (#13046)

Add support for LSM6DSV16X
This commit is contained in:
Steve Evans 2023-12-04 01:19:48 +00:00 committed by GitHub
parent 010a71820a
commit e126f1c4a4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
10 changed files with 1151 additions and 7 deletions

View file

@ -51,6 +51,7 @@
#include "drivers/accgyro/accgyro_spi_mpu6000.h"
#include "drivers/accgyro/accgyro_spi_mpu6500.h"
#include "drivers/accgyro/accgyro_spi_mpu9250.h"
#include "drivers/accgyro/accgyro_spi_lsm6dsv16x.h"
#ifdef USE_ACC_ADXL345
#include "drivers/accgyro_legacy/accgyro_adxl345.h"
@ -91,7 +92,8 @@
!defined(USE_ACC_SPI_ICM20689) && !defined(USE_ACCGYRO_LSM6DSO) && !defined(USE_ACCGYRO_BMI160) && \
!defined(USE_ACCGYRO_BMI270) && !defined(USE_ACC_SPI_ICM42605) && !defined(USE_ACC_SPI_ICM42688P) && \
!defined(USE_ACC_ADXL345) && !defined(USE_ACC_BMA280) && !defined(USE_ACC_LSM303DLHC) && \
!defined(USE_ACC_MMA8452) && !defined(USE_VIRTUAL_ACC)
!defined(USE_ACC_MMA8452) && !defined(USE_ACC_LSM303DLHC) && !defined(USE_ACCGYRO_LSM6DSV16X) && \
!defined(USE_VIRTUAL_ACC)
#error At least one USE_ACC device definition required
#endif
@ -328,6 +330,15 @@ retry:
FALLTHROUGH;
#endif
#ifdef USE_ACCGYRO_LSM6DSV16X
case ACC_LSM6DSV16X:
if (lsm6dsv16xSpiAccDetect(dev)) {
accHardware = ACC_LSM6DSV16X;
break;
}
FALLTHROUGH;
#endif
#ifdef USE_VIRTUAL_ACC
case ACC_VIRTUAL:
if (virtualAccDetect(dev)) {