Skip to content

Commit

Permalink
[target] ZEUSF4FR add BMI270 (#1027)
Browse files Browse the repository at this point in the history
  • Loading branch information
nerdCopter authored Apr 17, 2024
1 parent 2380bde commit 3a95349
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 24 deletions.
36 changes: 19 additions & 17 deletions src/main/target/ZEUSF4FR/target.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,10 @@

#pragma once


#define TARGET_BOARD_IDENTIFIER "HGLR"
#define USBD_PRODUCT_STRING "ZEUSF4FR"
#define BOARD_NAME ZEUSF4FR
#define MANUFACTURER_ID HGLR
#define TARGET_BOARD_IDENTIFIER "S411" // generic ID
#define FC_TARGET_MCU STM32F411 // not used in EmuF

#define LED0_PIN PC13

Expand All @@ -38,27 +39,28 @@
#define SPI1_MISO_PIN PA6
#define SPI1_MOSI_PIN PA7

#define MPU6000_CS_PIN PA4
//#define ICM20689_CS_PIN PA4
#define MPU6000_SPI_INSTANCE SPI1
//#define ICM20689_SPI_INSTANCE SPI1

#define USE_EXTI
#define USE_GYRO_EXTI
#define MPU_INT_EXTI PA1
#define USE_MPU_DATA_READY_SIGNAL
#define ENSURE_MPU_DATA_READY_IS_LOW

#define USE_GYRO
#define USE_GYRO_SPI_MPU6000
#define GYRO_MPU6000_ALIGN CW180_DEG
//#define USE_GYRO_SPI_ICM20689
//#define ACC_ICM20689_ALIGN CW180_DEG
#define MPU_INT_EXTI PA1

#define USE_ACC
#define USE_ACC_SPI_MPU6000
#define ACC_MPU6000_ALIGN CW180_DEG
//#define USE_ACC_SPI_ICM20689
//#define ACC_ICM20689_ALIGN CW180_DEG
#define USE_ACCGYRO_BMI270
#define USE_GYRO
#define USE_GYRO_SPI_MPU6000

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

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

// *************** Baro **************************
//#define USE_I2C
Expand Down
15 changes: 8 additions & 7 deletions src/main/target/ZEUSF4FR/target.mk
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,18 @@ F411_TARGETS += $(TARGET)
FEATURES += VCP ONBOARDFLASH

TARGET_SRC = \
drivers/accgyro/accgyro_mpu.c \
drivers/accgyro/accgyro_spi_mpu6000.c \
drivers/accgyro/accgyro_spi_icm20689.c \
drivers/accgyro/accgyro_mpu.c \
drivers/accgyro/accgyro_spi_mpu6000.c \
drivers/accgyro/accgyro_spi_icm20689.c \
drivers/accgyro/accgyro_spi_bmi270.c \
drivers/barometer/barometer_bmp280.c \
drivers/max7456.c \
drivers/rx/rx_cc2500.c \
rx/cc2500_common.c \
rx/cc2500_common.c \
rx/cc2500_frsky_shared.c \
rx/cc2500_frsky_d.c \
rx/cc2500_frsky_x.c \
rx/cc2500_redpine.c \
rx/cc2500_frsky_x.c \
rx/cc2500_redpine.c \
rx/cc2500_sfhss.c \
drivers/rx/rx_a7105.c \
drivers/light_ws2811strip.c
drivers/light_ws2811strip.c

0 comments on commit 3a95349

Please sign in to comment.