Skip to content

Commit

Permalink
[target] ZEUSF4EVO add BMI270; add default features (#1026)
Browse files Browse the repository at this point in the history
  • Loading branch information
nerdCopter authored Apr 17, 2024
1 parent cfa88fa commit 2380bde
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 14 deletions.
34 changes: 24 additions & 10 deletions src/main/target/ZEUSF4EVO/target.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,11 @@
*/

#pragma once
#define TARGET_BOARD_IDENTIFIER "S411"
#define USBD_PRODUCT_STRING "ZEUSF4EVO"
#define TARGET_MANUFACTURER_IDENTIFIER "HGLR"

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

#define ENABLE_DSHOT_DMAR true

Expand All @@ -34,19 +36,29 @@
//define camera control
//#define CAMERA_CONTROL_PIN PB10

//MPU-6000
#define USE_GYRO
#define USE_GYRO_SPI_MPU6000
#define USE_ACC
#define USE_ACC_SPI_MPU6000
#define USE_GYRO_SPI_MPU6000
#define USE_ACCGYRO_BMI270

#define USE_SPI_GYRO
#define USE_EXTI
#define USE_GYRO_EXTI

#define USE_MPU_DATA_READY_SIGNAL

#define MPU_INT_EXTI PA1 //MPU_INT_EXTI
#define MPU6000_CS_PIN PA4 //GYRO_1_CS_PIN
#define MPU6000_SPI_INSTANCE SPI1 //GYRO_1_SPI_INSTANCE
#define GYRO_MPU6000_ALIGN CW180_DEG
#define ACC_MPU6000_ALIGN CW180_DEG
#define MPU_INT_EXTI PA1

#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

// OSD
#define USE_MAX7456
Expand Down Expand Up @@ -124,6 +136,8 @@

#define USE_LED_STRIP

#define DEFAULT_FEATURES (FEATURE_OSD | FEATURE_TELEMETRY | FEATURE_AIRMODE | FEATURE_RX_SERIAL)

#define DEFAULT_RX_FEATURE FEATURE_RX_SERIAL
#define SERIALRX_PROVIDER SERIALRX_SBUS
//#define SERIALRX_UART SERIAL_PORT_USART2
Expand Down
9 changes: 5 additions & 4 deletions src/main/target/ZEUSF4EVO/target.mk
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,13 @@ F411_TARGETS += $(TARGET)
FEATURES += VCP ONBOARDFLASH

TARGET_SRC = \
drivers/accgyro/accgyro_mpu.c \
drivers/accgyro/accgyro_mpu.c \
drivers/accgyro/accgyro_spi_mpu6000.c \
drivers/accgyro/accgyro_spi_bmi270.c \
drivers/barometer/barometer_bmp085.c \
drivers/barometer/barometer_bmp280.c \
drivers/barometer/barometer_ms5611.c \
drivers/compass/compass_hmc5883l.c \
drivers/compass/compass_qmc5883l.c\
drivers/light_ws2811strip.c\
drivers/compass/compass_hmc5883l.c \
drivers/compass/compass_qmc5883l.c\
drivers/light_ws2811strip.c\
drivers/max7456.c

0 comments on commit 2380bde

Please sign in to comment.