1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-25 09:16:07 +03:00

CC3D - Use Flex port in I2C mode unless USART3 is used. Add I2C drivers

for compass, baro and display.
This commit is contained in:
Dominic Clifton 2015-01-22 19:19:23 +01:00
parent ce0a93a5d8
commit 9e73dca591
4 changed files with 39 additions and 2 deletions

View file

@ -47,8 +47,18 @@
#define ACC_SPI_MPU6000_ALIGN CW270_DEG
// External I2C BARO
#define BARO
#define USE_BARO_MS5611
#define USE_BARO_BMP085
// External I2C MAG
#define MAG
#define USE_MAG_HMC5883
#define INVERTER
#define BEEPER
#define DISPLAY
#define USE_USART1
#define USE_USART3
@ -69,6 +79,9 @@
#define USE_SPI_DEVICE_1
#define USE_SPI_DEVICE_2
#define USE_I2C
#define I2C_DEVICE (I2CDEV_2) // Flex port - SCL/PB10, SDA/PB11
#define USE_ADC
#define CURRENT_METER_ADC_GPIO GPIOB