Skip to content

Commit

Permalink
[target] SKYSTARSF7HD add BMI270 (#942)
Browse files Browse the repository at this point in the history
  • Loading branch information
nerdCopter authored Nov 2, 2023
1 parent c1ef73d commit 2bb2a72
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 2bb2a72

Please sign in to comment.