mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-12 19:10:32 +03:00
Adds missing ACCGYRO defines and remove legacy drivers (#14087)
This commit is contained in:
parent
ef81595f1d
commit
38928085f2
26 changed files with 114 additions and 1483 deletions
20
mk/source.mk
20
mk/source.mk
|
@ -290,7 +290,6 @@ ifneq ($(SIMULATOR_BUILD),yes)
|
|||
COMMON_SRC += \
|
||||
drivers/bus_spi.c \
|
||||
drivers/serial_uart.c \
|
||||
drivers/accgyro/accgyro_mpu3050.c \
|
||||
drivers/accgyro/accgyro_mpu6050.c \
|
||||
drivers/accgyro/accgyro_mpu6500.c \
|
||||
drivers/accgyro/accgyro_mpu.c \
|
||||
|
@ -332,24 +331,6 @@ COMMON_SRC += \
|
|||
drivers/vtx_rtc6705.c \
|
||||
drivers/vtx_rtc6705_soft_spi.c
|
||||
|
||||
ifneq ($(GYRO_DEFINE),)
|
||||
|
||||
LEGACY_GYRO_DEFINES := USE_GYRO_L3GD20
|
||||
ifneq ($(findstring $(GYRO_DEFINE),$(LEGACY_GYRO_DEFINES)),)
|
||||
|
||||
LEGACY_SRC := \
|
||||
drivers/accgyro/legacy/accgyro_adxl345.c \
|
||||
drivers/accgyro/legacy/accgyro_bma280.c \
|
||||
drivers/accgyro/legacy/accgyro_l3g4200d.c \
|
||||
drivers/accgyro/legacy/accgyro_lsm303dlhc.c \
|
||||
drivers/accgyro/legacy/accgyro_mma845x.c
|
||||
|
||||
COMMON_SRC += $(LEGACY_SRC)
|
||||
SPEED_OPTIMISED_SRC += $(LEGACY_SRC)
|
||||
|
||||
endif
|
||||
endif
|
||||
|
||||
RX_SRC = \
|
||||
drivers/rx/expresslrs_driver.c \
|
||||
drivers/rx/rx_a7105.c \
|
||||
|
@ -425,7 +406,6 @@ SPEED_OPTIMISED_SRC += \
|
|||
drivers/bus_spi.c \
|
||||
drivers/serial_uart.c \
|
||||
drivers/accgyro/accgyro_mpu.c \
|
||||
drivers/accgyro/accgyro_mpu3050.c \
|
||||
drivers/accgyro/accgyro_spi_bmi160.c \
|
||||
drivers/accgyro/accgyro_spi_bmi270.c \
|
||||
drivers/accgyro/accgyro_spi_lsm6dso.c
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue