mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-13 11:29:58 +03:00
parent
010a71820a
commit
e126f1c4a4
10 changed files with 1151 additions and 7 deletions
|
@ -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)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue