Skip to content

Commit

Permalink
[target] BETAFPVF411 - add BMI270
Browse files Browse the repository at this point in the history
  • Loading branch information
nerdCopter committed Nov 1, 2023
1 parent b1cf5d0 commit 6c1ebea
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/main/target/BETAFPVF411/target.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,13 @@
#define USE_SPI
#define USE_SPI_DEVICE_1

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

#define SPI1_SCK_PIN PA5
#define SPI1_MISO_PIN PA6
#define SPI1_MOSI_PIN PA7
Expand Down
1 change: 1 addition & 0 deletions src/main/target/BETAFPVF411/target.mk
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ FEATURES = VCP ONBOARDFLASH
TARGET_SRC = \
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 \
Expand Down

0 comments on commit 6c1ebea

Please sign in to comment.