Merge pull request #11198 from SteveCEvans/sce_rc2
[betaflight.git] / src / main / target / STM32_UNIFIED / target.mk
blob3cfe8b5af4442f4c6c7a7ebaf8648bed8a548f50
1 ifeq ($(TARGET), STM32F405)
2 F405_TARGETS += $(TARGET)
4 else
5 ifeq ($(TARGET), STM32F411)
6 F411_TARGETS += $(TARGET)
8 else
9 ifeq ($(TARGET), STM32F7X2)
10 F7X2RE_TARGETS += $(TARGET)
12 else
13 ifeq ($(TARGET), STM32F745)
14 F7X5XG_TARGETS += $(TARGET)
16 else
17 ifeq ($(TARGET), STM32G47X)
18 G47X_TARGETS += $(TARGET)
20 else # STM32H743
21 H743xI_TARGETS += $(TARGET)
23 endif
24 endif
25 endif
26 endif
27 endif
29 ifeq ($(TARGET), $(filter $(TARGET), STM32F405 STM32F745 STM32H743))
30 # Use a full block (16 kB) of flash for custom defaults - with 1 MB flash we have more than we know how to use anyway
32 CUSTOM_DEFAULTS_EXTENDED = yes
33 endif
35 ifeq ($(TARGET), STM32G47X)
36 FEATURES += VCP SDCARD_SPI ONBOARDFLASH
37 else
38 FEATURES += VCP SDCARD_SPI SDCARD_SDIO ONBOARDFLASH
39 endif
41 TARGET_SRC = \
42 $(addprefix drivers/accgyro/,$(notdir $(wildcard $(SRC_DIR)/drivers/accgyro/*.c))) \
43 $(ROOT)/lib/main/BoschSensortec/BMI270-Sensor-API/bmi270_maximum_fifo.c \
44 $(addprefix drivers/barometer/,$(notdir $(wildcard $(SRC_DIR)/drivers/barometer/*.c))) \
45 $(addprefix drivers/compass/,$(notdir $(wildcard $(SRC_DIR)/drivers/compass/*.c))) \
46 drivers/max7456.c \
47 drivers/vtx_rtc6705.c \
48 drivers/vtx_rtc6705_soft_spi.c \
49 rx/cc2500_common.c \
50 rx/cc2500_frsky_shared.c \
51 rx/cc2500_frsky_d.c \
52 rx/cc2500_frsky_x.c \
53 rx/cc2500_sfhss.c \
54 rx/cc2500_redpine.c \
55 rx/a7105_flysky.c \
56 rx/cyrf6936_spektrum.c \
57 drivers/rx/expresslrs_driver.c \
58 rx/expresslrs.c \
59 rx/expresslrs_common.c \
60 rx/expresslrs_telemetry.c \
61 drivers/rx/rx_cc2500.c \
62 drivers/rx/rx_a7105.c \
63 drivers/rx/rx_cyrf6936.c \
64 drivers/rx/rx_sx127x.c \
65 drivers/rx/rx_sx1280.c \