diff --git a/Makefile b/Makefile index 15afc8822..bcade54cd 100755 --- a/Makefile +++ b/Makefile @@ -652,6 +652,7 @@ MOTOLAB_SRC = \ drivers/accgyro_mpu.c \ drivers/display_ug2864hsweg01.c \ drivers/accgyro_mpu6050.c \ + drivers/accgyro_spi_mpu6000.c \ drivers/barometer_ms5611.c \ drivers/compass_hmc5883l.c \ drivers/serial_usb_vcp.c \ diff --git a/src/main/target/MOTOLAB/target.h b/src/main/target/MOTOLAB/target.h index b25491d2f..b2a69a341 100644 --- a/src/main/target/MOTOLAB/target.h +++ b/src/main/target/MOTOLAB/target.h @@ -41,15 +41,24 @@ //#define ENSURE_MPU_DATA_READY_IS_LOW #define GYRO -#define USE_GYRO_MPU6050 +#define ACC +#define USE_GYRO_MPU6050 #define GYRO_MPU6050_ALIGN CW180_DEG -#define ACC #define USE_ACC_MPU6050 #define ACC_MPU6050_ALIGN CW180_DEG +#define USE_GYRO_SPI_MPU6000 +#define GYRO_MPU6000_ALIGN CW180_DEG +#define USE_ACC_SPI_MPU6000 +#define ACC_MPU6000_ALIGN CW180_DEG + +#define MPU6000_CS_GPIO GPIOB +#define MPU6000_CS_PIN GPIO_Pin_12 +#define MPU6000_SPI_INSTANCE SPI2 + //#define BARO //#define USE_BARO_MS5611