diff --git a/src/main/drivers/accgyro/accgyro_lsm303dlhc.h b/src/main/drivers/accgyro/accgyro_lsm303dlhc.h index e3a5bb7067..90ee316c12 100644 --- a/src/main/drivers/accgyro/accgyro_lsm303dlhc.h +++ b/src/main/drivers/accgyro/accgyro_lsm303dlhc.h @@ -71,15 +71,6 @@ typedef struct { conditions (interrupts routines ...). */ #define LSM303DLHC_FLAG_TIMEOUT ((uint32_t)0x1000) #define LSM303DLHC_LONG_TIMEOUT ((uint32_t)(10 * LSM303DLHC_FLAG_TIMEOUT)) -/** - * @brief LSM303DLHC I2C Interface pins - */ -#define LSM303DLHC_I2C I2C1 -#define LSM303DLHC_I2C_SCK_PIN PB6 /* PB.06 */ -#define LSM303DLHC_I2C_SDA_PIN PB7 /* PB.7 */ -#define LSM303DLHC_DRDY_PIN PE2 /* PE.02 */ -#define LSM303DLHC_I2C_INT1_PIN PE4 /* PE.04 */ -#define LSM303DLHC_I2C_INT2_PIN PE5 /* PE.05 */ /******************************************************************************/ /*************************** START REGISTER MAPPING **************************/ diff --git a/src/main/target/CHEBUZZF3/target.h b/src/main/target/CHEBUZZF3/target.h index 5b1c938535..a59e0df57b 100644 --- a/src/main/target/CHEBUZZF3/target.h +++ b/src/main/target/CHEBUZZF3/target.h @@ -78,6 +78,13 @@ #define ACC #define USE_ACC_MPU6050 #define USE_ACC_LSM303DLHC +#define LSM303DLHC_I2C I2C1 +#define LSM303DLHC_I2C_SCK_PIN PB6 +#define LSM303DLHC_I2C_SDA_PIN PB7 +#define LSM303DLHC_DRDY_PIN PE2 +#define LSM303DLHC_I2C_INT1_PIN PE4 +#define LSM303DLHC_I2C_INT2_PIN PE5 + #define ACC_MPU6050_ALIGN CW0_DEG #define BARO diff --git a/src/main/target/STM32F3DISCOVERY/target.h b/src/main/target/STM32F3DISCOVERY/target.h index af46d5d173..3ac5773145 100644 --- a/src/main/target/STM32F3DISCOVERY/target.h +++ b/src/main/target/STM32F3DISCOVERY/target.h @@ -178,6 +178,14 @@ #define USE_I2C_DEVICE_1 #define I2C_DEVICE (I2CDEV_1) +#define LSM303DLHC_I2C I2C1 +#define LSM303DLHC_I2C_SCK_PIN PB6 +#define LSM303DLHC_I2C_SDA_PIN PB7 +#define LSM303DLHC_DRDY_PIN PE2 +#define LSM303DLHC_I2C_INT1_PIN PE4 +#define LSM303DLHC_I2C_INT2_PIN PE5 + + #define USE_ADC #define ADC_INSTANCE ADC1 #define VBAT_ADC_PIN PC0