7 $(addprefix pg
/,$(notdir $(wildcard $(SRC_DIR
)/pg
/*.c
))) \
8 $(addprefix common
/,$(notdir $(wildcard $(SRC_DIR
)/common
/*.c
))) \
9 $(addprefix config
/,$(notdir $(wildcard $(SRC_DIR
)/config
/*.c
))) \
11 drivers
/buf_writer.c \
13 drivers
/bus_i2c_config.c \
14 drivers
/bus_i2c_busdev.c \
15 drivers
/bus_i2c_soft.c \
17 drivers
/bus_spi_config.c \
18 drivers
/bus_spi_pinconfig.c \
28 drivers
/serial_pinconfig.c \
29 drivers
/serial_uart.c \
30 drivers
/serial_uart_pinconfig.c \
31 drivers
/sound_beeper.c \
32 drivers
/stack_check.c \
34 drivers
/timer_common.c \
36 drivers
/transponder_ir_arcitimer.c \
37 drivers
/transponder_ir_ilap.c \
38 drivers
/transponder_ir_erlt.c \
47 interface
/tramp_protocol.c \
48 interface
/smartaudio_protocol.c \
52 io
/statusindicator.c \
57 scheduler
/scheduler.c \
58 sensors
/adcinternal.c \
62 target
/config_helper.c \
64 fc/controlrate_profile.c \
65 drivers
/camera_control.c \
66 drivers
/accgyro
/gyro_sync.c \
67 drivers
/pwm_esc_detect.c \
68 drivers
/pwm_output.c \
70 drivers
/rx
/rx_xn297.c \
72 drivers
/serial_softserial.c \
83 flight
/mixer_tricopter.c \
86 flight
/servos_tricopter.c \
88 interface
/settings.c \
90 io
/serial_4way_avrootloader.c \
91 io
/serial_4way_stk500v2.c \
102 io
/spektrum_vtx_control.c \
108 sensors
/acceleration.c \
109 sensors
/boardalignment.c \
112 sensors
/gyroanalyse.c \
113 sensors
/initialisation.c \
114 blackbox
/blackbox.c \
115 blackbox
/blackbox_encoding.c \
116 blackbox
/blackbox_io.c \
118 cms
/cms_menu_blackbox.c \
119 cms
/cms_menu_builtin.c \
121 cms
/cms_menu_ledstrip.c \
122 cms
/cms_menu_misc.c \
124 cms
/cms_menu_power.c \
125 cms
/cms_menu_vtx_rtc6705.c \
126 cms
/cms_menu_vtx_smartaudio.c \
127 cms
/cms_menu_vtx_tramp.c \
128 drivers
/display_ug2864hsweg01.c \
129 drivers
/light_ws2811strip.c \
130 drivers
/rangefinder
/rangefinder_hcsr04.c \
131 drivers
/rangefinder
/rangefinder_lidartf.c \
132 drivers
/serial_escserial.c \
133 drivers
/vtx_common.c \
135 io
/displayport_max7456.c \
136 io
/displayport_msp.c \
137 io
/displayport_oled.c \
138 io
/displayport_srxl.c \
139 io
/displayport_crsf.c \
146 sensors
/barometer.c \
147 sensors
/rangefinder.c \
148 telemetry
/telemetry.c \
151 telemetry
/frsky_hub.c \
153 telemetry
/jetiexbus.c \
154 telemetry
/smartport.c \
156 telemetry
/mavlink.c \
157 telemetry
/msp_shared.c \
159 telemetry
/ibus_shared.c \
160 sensors
/esc_sensor.c \
164 io
/vtx_smartaudio.c \
168 COMMON_DEVICE_SRC
= \
170 $(DEVICE_STDPERIPH_SRC
)
172 COMMON_SRC
:= $(COMMON_SRC
) $(COMMON_DEVICE_SRC
)
174 ifeq ($(SIMULATOR_BUILD
),yes
)
175 TARGET_FLAGS
:= -DSIMULATOR_BUILD
$(TARGET_FLAGS
)
178 SPEED_OPTIMISED_SRC
:= ""
179 SIZE_OPTIMISED_SRC
:= ""
181 ifneq ($(TARGET
),$(filter $(TARGET
),$(F1_TARGETS
)))
182 SPEED_OPTIMISED_SRC
:= $(SPEED_OPTIMISED_SRC
) \
186 common
/typeconversion.c \
187 drivers
/accgyro
/accgyro_fake.c \
188 drivers
/accgyro
/accgyro_mpu.c \
189 drivers
/accgyro
/accgyro_mpu3050.c \
190 drivers
/accgyro
/accgyro_mpu6050.c \
191 drivers
/accgyro
/accgyro_mpu6500.c \
192 drivers
/accgyro
/accgyro_spi_bmi160.c \
193 drivers
/accgyro
/accgyro_spi_icm20689.c \
194 drivers
/accgyro
/accgyro_spi_mpu6000.c \
195 drivers
/accgyro
/accgyro_spi_mpu6500.c \
196 drivers
/accgyro
/accgyro_spi_mpu9250.c \
197 drivers
/accgyro_legacy
/accgyro_adxl345.c \
198 drivers
/accgyro_legacy
/accgyro_bma280.c \
199 drivers
/accgyro_legacy
/accgyro_l3g4200d.c \
200 drivers
/accgyro_legacy
/accgyro_l3gd20.c \
201 drivers
/accgyro_legacy
/accgyro_lsm303dlhc.c \
202 drivers
/accgyro_legacy
/accgyro_mma845x.c \
204 drivers
/buf_writer.c \
209 drivers
/pwm_output.c \
212 drivers
/serial_uart.c \
219 fc/runtime_config.c \
233 scheduler
/scheduler.c \
234 sensors
/acceleration.c \
235 sensors
/boardalignment.c \
237 sensors
/gyroanalyse.c \
239 $(DEVICE_STDPERIPH_SRC
) \
241 SIZE_OPTIMISED_SRC
:= $(SIZE_OPTIMISED_SRC
) \
242 bus_bst_stm32f30x.c \
243 drivers
/barometer
/barometer_bmp085.c \
244 drivers
/barometer
/barometer_bmp280.c \
245 drivers
/barometer
/barometer_fake.c \
246 drivers
/barometer
/barometer_ms5611.c \
247 drivers
/barometer
/barometer_lps.c \
248 drivers
/barometer
/barometer_qmp6988.c \
249 drivers
/bus_i2c_config.c \
250 drivers
/bus_spi_config.c \
251 drivers
/bus_spi_pinconfig.c \
252 drivers
/compass
/compass_ak8963.c \
253 drivers
/compass
/compass_ak8975.c \
254 drivers
/compass
/compass_fake.c \
255 drivers
/compass
/compass_hmc5883l.c \
256 drivers
/compass
/compass_qmc5883l.c \
257 drivers
/display_ug2864hsweg01.c \
259 drivers
/light_ws2811strip.c \
260 drivers
/light_ws2811strip_hal.c \
261 drivers
/light_ws2811strip_stdperiph.c \
262 drivers
/serial_escserial.c \
263 drivers
/serial_pinconfig.c \
264 drivers
/serial_tcp.c \
265 drivers
/serial_uart_init.c \
266 drivers
/serial_uart_pinconfig.c \
267 drivers
/serial_usb_vcp.c \
268 drivers
/transponder_ir_io_hal.c \
269 drivers
/transponder_ir_io_stdperiph.c \
270 drivers
/vtx_rtc6705_soft_spi.c \
271 drivers
/vtx_rtc6705.c \
272 drivers
/vtx_common.c \
275 config
/config_eeprom.c \
277 config
/config_streamer.c \
280 interface
/settings.c \
285 io
/serial_4way_avrootloader.c \
286 io
/serial_4way_stk500v2.c \
287 io
/transponder_ir.c \
291 cms
/cms_menu_blackbox.c \
292 cms
/cms_menu_builtin.c \
294 cms
/cms_menu_ledstrip.c \
295 cms
/cms_menu_misc.c \
297 cms
/cms_menu_power.c \
298 cms
/cms_menu_vtx_rtc6705.c \
299 cms
/cms_menu_vtx_smartaudio.c \
300 cms
/cms_menu_vtx_tramp.c \
304 io
/vtx_smartaudio.c \
307 io
/spektrum_vtx_control.c \
310 # F4 and F7 optimizations
311 ifneq ($(TARGET
),$(filter $(TARGET
),$(F3_TARGETS
)))
312 SPEED_OPTIMISED_SRC
:= $(SPEED_OPTIMISED_SRC
) \
313 drivers
/bus_i2c_hal.c \
314 drivers
/bus_spi_ll.c \
316 drivers
/pwm_output_dshot.c \
317 drivers
/pwm_output_dshot_hal.c
321 # check if target.mk supplied
322 SRC
:= $(STARTUP_SRC
) $(MCU_COMMON_SRC
) $(TARGET_SRC
) $(VARIANT_SRC
)
326 INCLUDE_DIRS
+= $(DSP_LIB
)/Include
328 SRC
+= $(DSP_LIB
)/Source
/BasicMathFunctions
/arm_mult_f32.c
329 SRC
+= $(DSP_LIB
)/Source
/TransformFunctions
/arm_rfft_fast_f32.c
330 SRC
+= $(DSP_LIB
)/Source
/TransformFunctions
/arm_cfft_f32.c
331 SRC
+= $(DSP_LIB
)/Source
/TransformFunctions
/arm_rfft_fast_init_f32.c
332 SRC
+= $(DSP_LIB
)/Source
/TransformFunctions
/arm_cfft_radix8_f32.c
333 SRC
+= $(DSP_LIB
)/Source
/CommonTables
/arm_common_tables.c
335 SRC
+= $(DSP_LIB
)/Source
/ComplexMathFunctions
/arm_cmplx_mag_f32.c
336 SRC
+= $(DSP_LIB
)/Source
/StatisticsFunctions
/arm_max_f32.c
338 SRC
+= $(wildcard $(DSP_LIB
)/Source
/*/*.S
)
341 ifneq ($(filter ONBOARDFLASH
,$(FEATURES
)),)
344 drivers
/flash_m25p16.c \
345 drivers
/flash_w25m.c \
354 SRC
:= $(filter-out $(MCU_EXCLUDES
), $(SRC
))
356 ifneq ($(filter SDCARD
,$(FEATURES
)),)
359 drivers
/sdcard_standard.c \
360 io
/asyncfatfs
/asyncfatfs.c \
361 io
/asyncfatfs
/fat_standard.c \
365 ifneq ($(filter SDIO
,$(FEATURES
)),)
367 drivers
/sdcard_sdio_baremetal.c \
368 drivers
/sdcard_standard.c \
369 io
/asyncfatfs
/asyncfatfs.c \
370 io
/asyncfatfs
/fat_standard.c \
375 ifneq ($(filter VCP
,$(FEATURES
)),)
379 ifneq ($(filter MSC
,$(FEATURES
)),)
382 # end target specific make file checks
384 # Search path and source files for the ST stdperiph library
385 VPATH
:= $(VPATH
):$(STDPERIPH_DIR
)/src