Skip to content

Commit

Permalink
BMI270 - remove targets and targets modification from this PR
Browse files Browse the repository at this point in the history
  • Loading branch information
nerdCopter committed Oct 31, 2023
1 parent 78d1ce6 commit b5ac87a
Show file tree
Hide file tree
Showing 19 changed files with 17 additions and 565 deletions.
7 changes: 0 additions & 7 deletions src/main/target/BETAFPVF411/target.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,6 @@
#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: 0 additions & 1 deletion src/main/target/BETAFPVF411/target.mk
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ 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
25 changes: 12 additions & 13 deletions src/main/target/FLYWOOF411_5IN1_AIO/target.mk
Original file line number Diff line number Diff line change
Expand Up @@ -3,23 +3,22 @@ F411_TARGETS += $(TARGET)
FEATURES += VCP

TARGET_SRC = \
drivers/accgyro/accgyro_mpu.c \
drivers/accgyro/accgyro_spi_bmi270.c \
drivers/accgyro/accgyro_spi_icm20689.c \
drivers/accgyro/accgyro_spi_icm426xx.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/accgyro/accgyro_mpu.c \
drivers/accgyro/accgyro_spi_mpu6000.c \
drivers/accgyro/accgyro_spi_icm20689.c \
drivers/accgyro/accgyro_spi_icm426xx.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/max7456.c \
drivers/rx/rx_cc2500.c \
rx/cc2500_common.c \
rx/cc2500_common.c \
rx/cc2500_frsky_shared.c \
rx/cc2500_frsky_d.c \
rx/cc2500_frsky_x.c \
rx/cc2500_redpine.c \
rx/cc2500_frsky_x.c \
rx/cc2500_redpine.c \
rx/cc2500_sfhss.c\
drivers/rx/rx_a7105.c \
drivers/light_ws2811strip.c
drivers/light_ws2811strip.c
Empty file.
15 changes: 0 additions & 15 deletions src/main/target/FOXEERF745_AIO/target.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,7 @@
#pragma once

#define TARGET_BOARD_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 @@ -60,16 +55,6 @@
//#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: 2 additions & 3 deletions src/main/target/FOXEERF745_AIO/target.mk
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,11 @@ 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
2 changes: 1 addition & 1 deletion src/main/target/IFLIGHT_F745_AIO_V2/target.h
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
#define USE_DUAL_GYRO

#define USE_SPI_GYRO
#define USE_ACCGYRO_BMI270
//#define USE_ACCGYRO_BMI270
#define USE_GYRO_SPI_MPU6000
#define USE_ACC_SPI_MPU6000

Expand Down
2 changes: 1 addition & 1 deletion src/main/target/IFLIGHT_F745_AIO_V2/target.mk
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +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/barometer/barometer_ms5611.c \
drivers/barometer/barometer_bmp280.c \
drivers/barometer/barometer_bmp085.c \
drivers/barometer/barometer_ms5611.c \
drivers/compass/compass_hmc5883l.c \
drivers/compass/compass_qmc5883l.c \
drivers/light_ws2811strip.c \
Expand Down
39 changes: 0 additions & 39 deletions src/main/target/NBD_INFINITYAIOV2PRO/target.c

This file was deleted.

153 changes: 0 additions & 153 deletions src/main/target/NBD_INFINITYAIOV2PRO/target.h

This file was deleted.

13 changes: 0 additions & 13 deletions src/main/target/NBD_INFINITYAIOV2PRO/target.mk

This file was deleted.

7 changes: 0 additions & 7 deletions src/main/target/SKYSTARSF7HD/target.h
Original file line number Diff line number Diff line change
Expand Up @@ -53,13 +53,6 @@

#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: 1 addition & 2 deletions src/main/target/SKYSTARSF7HD/target.mk
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,12 @@ 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
Loading

0 comments on commit b5ac87a

Please sign in to comment.