Merge pull request #10277 from mikeller/make_mpu_6050_only_build_on_1m_targets

Make the MPU6050 (I2C) driver only build on Unified Targets with 1MB flash.
This commit is contained in:
Michael Keller 2020-10-17 20:43:30 +13:00 committed by GitHub
commit df4348be78
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 2 deletions

View File

@ -24,6 +24,8 @@
#include "platform.h"
#if defined(USE_ACC_MPU6050) || defined(USE_GYRO_MPU6050)
#include "build/debug.h"
#include "common/maths.h"
@ -111,3 +113,4 @@ bool mpu6050GyroDetect(gyroDev_t *gyro)
return true;
}
#endif

View File

@ -155,8 +155,6 @@
#define USE_ACC
#define USE_GYRO
#define USE_ACC_MPU6050
#define USE_GYRO_MPU6050
#define USE_ACC_MPU6500
#define USE_GYRO_MPU6500
#define USE_ACC_SPI_MPU6000
@ -253,6 +251,9 @@
// Additional drivers included for targets with > 512KB of flash
#if (TARGET_FLASH_SIZE > 512)
#define USE_ACC_MPU6050
#define USE_GYRO_MPU6050
#define USE_ACCGYRO_BMI270
#define USE_BARO_BMP085
#endif