Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[target] GEPRCF722BT add BMI270 #1017

Merged
merged 1 commit into from
Apr 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 22 additions & 8 deletions src/main/target/GEPRCF722BT/target.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,10 @@

#define USE_TARGET_CONFIG

#define TARGET_BOARD_IDENTIFIER "S7X2"
#define USBD_PRODUCT_STRING "GEPRCF722BT"
#define TARGET_MANUFACTURER_IDENTIFIER "GEPR"
#define BOARD_NAME GEPRCF722BT
#define MANUFACTURER_ID GEPR
#define TARGET_BOARD_IDENTIFIER "S7X2" // generic ID
#define FC_TARGET_MCU STM32F7X2 // not used in EmuF

#define LED0_PIN PC15
#define LED1_PIN PC14
Expand All @@ -42,14 +43,27 @@

#define USE_GYRO
#define USE_GYRO_SPI_MPU6000
#define MPU6000_CS_PIN PA4
#define MPU6000_SPI_INSTANCE SPI1
#define GYRO_1_ALIGN CW0_DEG

#define USE_GYRO_SPI_MPU6500
#define USE_ACC
#define USE_ACC_SPI_MPU6000
#define USE_ACC_SPI_MPU6500
#define ACC_MPU6000_ALIGN CW0_DEG
#define USE_ACCGYRO_BMI270

#define ACC_MPU6000_ALIGN CW0_DEG
#define GYRO_MPU6000_ALIGN CW0_DEG
#define MPU6000_CS_PIN PA4
#define MPU6000_SPI_INSTANCE SPI1

// MPU6500 validity is doubtful
#define ACC_MPU6500_ALIGN CW0_DEG
#define GYRO_MPU6500_ALIGN CW0_DEG
#define MPU6500_CS_PIN PA4
#define MPU6500_SPI_INSTANCE SPI1

#define ACC_BMI270_ALIGN CW0_DEG
#define GYRO_BMI270_ALIGN CW0_DEG
#define BMI270_CS_PIN PA4
#define BMI270_SPI_INSTANCE SPI1

#define USE_BARO
#define USE_BARO_BMP280
Expand Down
23 changes: 12 additions & 11 deletions src/main/target/GEPRCF722BT/target.mk
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
F7X2RE_TARGETS += $(TARGET)
FEATURES += VCP ONBOARDFLASH
TARGET_SRC = \
drivers/accgyro/accgyro_mpu.c \
drivers/accgyro/accgyro_mpu6500.c \
drivers/accgyro/accgyro_spi_mpu6000.c \
drivers/accgyro/accgyro_spi_mpu6500.c \
drivers/barometer/barometer_ms5611.c \
drivers/barometer/barometer_bmp280.c \
drivers/barometer/barometer_bmp085.c \
drivers/compass/compass_hmc5883l.c \
drivers/compass/compass_qmc5883l.c \
drivers/max7456.c\
drivers/light_ws2811strip.c
drivers/accgyro/accgyro_mpu.c \
drivers/accgyro/accgyro_mpu6500.c \
drivers/accgyro/accgyro_spi_mpu6500.c \
drivers/accgyro/accgyro_spi_mpu6000.c \
drivers/accgyro/accgyro_spi_bmi270.c \
drivers/barometer/barometer_ms5611.c \
drivers/barometer/barometer_bmp280.c \
drivers/barometer/barometer_bmp085.c \
drivers/compass/compass_hmc5883l.c \
drivers/compass/compass_qmc5883l.c \
drivers/max7456.c\
drivers/light_ws2811strip.c
Loading