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:
commit
df4348be78
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue