Skip to content

Commit

Permalink
[target] HGLRCF722 add BMI270 (emuflight#1020)
Browse files Browse the repository at this point in the history
  • Loading branch information
nerdCopter committed Apr 17, 2024
1 parent ab318f0 commit b8c3537
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 4 deletions.
17 changes: 13 additions & 4 deletions src/main/target/HGLRCF722/target.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,10 @@

#define USE_TARGET_CONFIG

#define BOARD_NAME HGLRCF722
#define MANUFACTURER_ID HGLR
#define TARGET_BOARD_IDENTIFIER "S7X2"
#define USBD_PRODUCT_STRING "HGLRCF722"
#define FC_TARGET_MCU STM32F7X2 // not used in EmuF

#define ENABLE_DSHOT_DMAR true

Expand All @@ -42,20 +44,27 @@
#define SPI1_MISO_PIN PA6
#define SPI1_MOSI_PIN PA7

#define USE_SPI_GYRO
#define USE_EXTI
#define USE_GYRO_EXTI
#define MPU_INT_EXTI PC4

#define MPU6000_CS_PIN PB2
#define MPU6000_SPI_INSTANCE SPI1

#define USE_GYRO
#define USE_GYRO_SPI_MPU6000

#define USE_ACC
#define USE_ACC_SPI_MPU6000
#define USE_ACCGYRO_BMI270

#define GYRO_MPU6000_ALIGN CW180_DEG_FLIP
#define ACC_MPU6000_ALIGN CW180_DEG_FLIP
#define MPU6000_CS_PIN PB2
#define MPU6000_SPI_INSTANCE SPI1

#define ACC_BMI270_ALIGN CW180_DEG_FLIP
#define GYRO_BMI270_ALIGN CW180_DEG_FLIP
#define BMI270_CS_PIN PB2
#define BMI270_SPI_INSTANCE SPI1

#define USE_MPU_DATA_READY_SIGNAL
#define ENSURE_MPU_DATA_READY_IS_LOW
Expand Down
1 change: 1 addition & 0 deletions src/main/target/HGLRCF722/target.mk
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ FEATURES += VCP ONBOARDFLASH

TARGET_SRC = \
drivers/accgyro/accgyro_spi_mpu6000.c \
drivers/accgyro/accgyro_spi_bmi270.c \
drivers/accgyro/accgyro_mpu.c \
drivers/barometer/barometer_bmp280.c \
drivers/barometer/barometer_ms5611.c \
Expand Down

0 comments on commit b8c3537

Please sign in to comment.