Skip to content

Commit

Permalink
[target] SKYSTARSF7HD add BMI270
Browse files Browse the repository at this point in the history
  • Loading branch information
nerdCopter committed Nov 1, 2023
1 parent 218da79 commit 208f32d
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
7 changes: 7 additions & 0 deletions src/main/target/SKYSTARSF7HD/target.h
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,13 @@

#define USE_ACC

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

#define MPU6000_CS_PIN PA4
#define MPU6000_SPI_INSTANCE SPI1

Expand Down
3 changes: 2 additions & 1 deletion src/main/target/SKYSTARSF7HD/target.mk
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,13 @@ F7X2RE_TARGETS += $(TARGET)
FEATURES += VCP ONBOARDFLASH

TARGET_SRC = \
drivers/accgyro/accgyro_spi_bmi270.c \
drivers/accgyro/accgyro_mpu.c \
drivers/accgyro/accgyro_spi_mpu6000.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/light_ws2811strip.c \
drivers/max7456.c

0 comments on commit 208f32d

Please sign in to comment.