1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-19 22:35:23 +03:00

Merge pull request #4643 from jflyper/bfdev-target-and-mcu-dependent-optimzation-alternative

Add MCU dependent optimization to sources.mk
This commit is contained in:
Michael Keller 2017-11-28 19:17:56 +13:00 committed by GitHub
commit 5fee45b704
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -313,6 +313,16 @@ SIZE_OPTIMISED_SRC := $(SIZE_OPTIMISED_SRC) \
io/vtx_smartaudio.c \ io/vtx_smartaudio.c \
io/vtx_tramp.c \ io/vtx_tramp.c \
io/vtx_control.c io/vtx_control.c
# F4 and F7 optimizations
ifneq ($(TARGET),$(filter $(TARGET),$(F3_TARGETS)))
SPEED_OPTIMISED_SRC := $(SPEED_OPTIMISED_SRC) \
drivers/bus_i2c_hal.c \
drivers/bus_spi_ll.c \
drivers/max7456.c \
drivers/pwm_output_dshot.c \
drivers/pwm_output_dshot_hal.c
endif #!F3
endif #!F1 endif #!F1
# check if target.mk supplied # check if target.mk supplied