diff --git a/Makefile b/Makefile index 9bbf85ea52..4b6ace084c 100644 --- a/Makefile +++ b/Makefile @@ -599,6 +599,7 @@ COLIBRI_RACE_SRC = \ drivers/bus_bst_stm32f30x.c \ drivers/accgyro_mpu.c \ drivers/accgyro_mpu6500.c \ + drivers/accgyro_spi_mpu6000.c \ drivers/accgyro_spi_mpu6500.c \ drivers/accgyro_mpu6500.c \ drivers/barometer_ms5611.c \ diff --git a/src/main/target/COLIBRI_RACE/target.h b/src/main/target/COLIBRI_RACE/target.h index 4b9f5c634f..4d9a06df97 100755 --- a/src/main/target/COLIBRI_RACE/target.h +++ b/src/main/target/COLIBRI_RACE/target.h @@ -43,6 +43,11 @@ #define MPU6500_CS_PIN GPIO_Pin_4 #define MPU6500_SPI_INSTANCE SPI1 +#define MPU6000_CS_GPIO_CLK_PERIPHERAL RCC_AHBPeriph_GPIOA +#define MPU6000_CS_GPIO GPIOA +#define MPU6000_CS_PIN GPIO_Pin_4 +#define MPU6000_SPI_INSTANCE SPI1 + #define USE_SPI #define USE_SPI_DEVICE_1 @@ -60,11 +65,15 @@ #define EXTI_CALLBACK_HANDLER_COUNT 1 // MPU data ready #define GYRO +#define USE_GYRO_SPI_MPU6000 +#define GYRO_MPU6000_ALIGN CW270_DEG #define USE_GYRO_MPU6500 #define USE_GYRO_SPI_MPU6500 #define GYRO_MPU6500_ALIGN CW270_DEG #define ACC +#define USE_ACC_SPI_MPU6000 +#define ACC_MPU6000_ALIGN CW270_DEG #define USE_ACC_MPU6500 #define USE_ACC_SPI_MPU6500 #define ACC_MPU6500_ALIGN CW270_DEG