Skip to content

Commit

Permalink
[target] GEPRC_F722_AIO add BMI270 (emuflight#1015)
Browse files Browse the repository at this point in the history
  • Loading branch information
nerdCopter committed Apr 17, 2024
1 parent 0cad506 commit af24c5c
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 24 deletions.
48 changes: 27 additions & 21 deletions src/main/target/GEPRC_F722_AIO/target.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,10 @@
*/
#pragma once

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

#define LED0_PIN PC4

Expand All @@ -33,30 +34,35 @@

#define ENABLE_DSHOT_DMAR true

#define USE_EXTI
#define MPU_INT_EXTI PA8
#define USE_MPU_DATA_READY_SIGNAL

#define USE_GYRO

#define USE_GYRO_SPI_MPU6000
#define USE_ACC
#define USE_ACC_SPI_MPU6000
#define USE_ACCGYRO_BMI270
#define USE_GYRO_SPI_ICM42688P
#define ICM42688P_CS_PIN PA15
#define ICM42688P_SPI_INSTANCE SPI1
#define GYRO_ICM42688P_ALIGN CW90_DEG
#define USE_ACC_SPI_ICM42688P

#define USE_GYRO_SPI_MPU6000
#define MPU6000_CS_PIN PA15
#define MPU6000_SPI_INSTANCE SPI1
#define GYRO_MPU6000_ALIGN CW90_DEG
#define USE_EXTI
#define USE_SPI_GYRO
#define USE_GYRO_EXTI

#define USE_ACC
#define MPU_INT_EXTI PA8
#define USE_MPU_DATA_READY_SIGNAL

#define USE_ACC_SPI_ICM42688P
#define ACC_ICM42688P_ALIGN CW90_DEG
#define ACC_MPU6000_ALIGN CW90_DEG
#define GYRO_MPU6000_ALIGN CW90_DEG
#define MPU6000_CS_PIN PA15
#define MPU6000_SPI_INSTANCE SPI1

#define USE_ACC_SPI_MPU6000
#define USE_ACC_SPI_MPU6500
#define ACC_MPU6000_ALIGN CW90_DEG
#define ACC_ICM42688P_ALIGN CW90_DEG
#define GYRO_ICM42688P_ALIGN CW90_DEG
#define ICM42688P_CS_PIN PA15
#define ICM42688P_SPI_INSTANCE SPI1

#define ACC_BMI270_ALIGN CW90_DEG
#define GYRO_BMI270_ALIGN CW90_DEG
#define BMI270_CS_PIN PA15
#define BMI270_SPI_INSTANCE SPI1

#define USE_BARO
#define USE_BARO_BMP280
Expand Down
5 changes: 2 additions & 3 deletions src/main/target/GEPRC_F722_AIO/target.mk
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
F7X2RE_TARGETS += $(TARGET)
FEATURES += VCP ONBOARDFLASH
TARGET_SRC = \
drivers/accgyro/accgyro_spi_icm426xx.c \
drivers/accgyro/accgyro_mpu.c \
drivers/accgyro/accgyro_mpu6500.c \
drivers/accgyro/accgyro_spi_mpu6000.c \
drivers/accgyro/accgyro_spi_mpu6500.c \
drivers/accgyro/accgyro_spi_icm426xx.c \
drivers/accgyro/accgyro_spi_bmi270.c \
drivers/barometer/barometer_ms5611.c \
drivers/barometer/barometer_bmp280.c \
drivers/barometer/barometer_bmp085.c \
Expand Down

0 comments on commit af24c5c

Please sign in to comment.