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] BETAFPVF411 - add BMI270 #937

Merged
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
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
Loading