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] FOXEERF745_AIO_V2 (BMI270) #939

Merged
merged 2 commits into from
Nov 2, 2023
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
Empty file.
16 changes: 16 additions & 0 deletions src/main/target/FOXEERF745_AIO/target.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,13 @@
#pragma once

#define TARGET_BOARD_IDENTIFIER "FOXE"
#define TARGET_MANUFACTURER_IDENTIFIER "FOXE"

#if defined(FOXEERF745_AIO_V2)
#define USBD_PRODUCT_STRING "FOXEERF745_AIO_V2"
#else
#define USBD_PRODUCT_STRING "FOXEERF745_AIO"
#endif

#define LED0_PIN PC13

Expand Down Expand Up @@ -55,6 +61,16 @@
//#define MAG_HMC5883_ALIGN CW270_DEG_FLIP
//#define MAG_ALIGN CW180_DEG //not sure if this command will work or if should be more specific to mag

#if defined(FOXEERF745_AIO_V2)
//BMI270
#define USE_SPI_GYRO
#define USE_ACCGYRO_BMI270
#define BMI270_CS_PIN PA15
#define BMI270_SPI_INSTANCE SPI3
#define ACC_BMI270_ALIGN CW180_DEG
#define GYRO_BMI270_ALIGN CW180_DEG
#endif

#define USE_BARO
#define USE_BARO_BMP280
#define BARO_I2C_INSTANCE (I2CDEV_1)
Expand Down
5 changes: 3 additions & 2 deletions src/main/target/FOXEERF745_AIO/target.mk
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,12 @@ F7X5XG_TARGETS += $(TARGET)
FEATURES += VCP ONBOARDFLASH

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