From 96aa86f49df2a15f4e53bcda8c1e01bf19df217d Mon Sep 17 00:00:00 2001 From: Guido Date: Mon, 13 Nov 2023 22:12:04 +0800 Subject: [PATCH] added BARO (BMP280 and DPS310) define (#214) * added BARO (BMP280 and DPS310) define * Update configs/MEPSF411/config.h Co-authored-by: Mark Haslinghuis * added I2C dev definition * fixed name --------- Co-authored-by: Mark Haslinghuis --- configs/MEPSF411/config.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/configs/MEPSF411/config.h b/configs/MEPSF411/config.h index c4cf3a66..67cc2eba 100644 --- a/configs/MEPSF411/config.h +++ b/configs/MEPSF411/config.h @@ -23,13 +23,16 @@ #define FC_TARGET_MCU STM32F411 -#define BOARD_NAME MEPS411 +#define BOARD_NAME MEPSF411 #define MANUFACTURER_ID MEPS #define USE_GYRO #define USE_GYRO_SPI_MPU6500 #define USE_ACC #define USE_ACC_SPI_MPU6500 +#define USE_BARO +#define USE_BARO_BMP280 +#define USE_BARO_DPS310 #define USE_FLASH #define USE_FLASH_M25P16 #define USE_MAX7456 @@ -76,6 +79,7 @@ #define ADC1_DMA_OPT 1 +#define BARO_I2C_INSTANCE (I2CDEV_1) #define DEFAULT_BLACKBOX_DEVICE BLACKBOX_DEVICE_FLASH #define DEFAULT_DSHOT_BURST DSHOT_DMAR_AUTO #define DEFAULT_DSHOT_BITBANG DSHOT_BITBANG_OFF