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 \
55 scheduler
/scheduler.c \
56 sensors
/adcinternal.c \
60 target
/config_helper.c
63 io
/displayport_max7456.c \
64 osd_slave
/osd_slave_init.c \
69 fc/controlrate_profile.c \
70 drivers
/camera_control.c \
71 drivers
/accgyro
/gyro_sync.c \
72 drivers
/pwm_esc_detect.c \
73 drivers
/pwm_output.c \
75 drivers
/rx
/rx_xn297.c \
77 drivers
/serial_softserial.c \
88 flight
/mixer_tricopter.c \
91 flight
/servos_tricopter.c \
93 interface
/settings.c \
95 io
/serial_4way_avrootloader.c \
96 io
/serial_4way_stk500v2.c \
107 io
/spektrum_vtx_control.c \
113 sensors
/acceleration.c \
114 sensors
/boardalignment.c \
117 sensors
/gyroanalyse.c \
118 sensors
/initialisation.c \
119 blackbox
/blackbox.c \
120 blackbox
/blackbox_encoding.c \
121 blackbox
/blackbox_io.c \
123 cms
/cms_menu_blackbox.c \
124 cms
/cms_menu_builtin.c \
126 cms
/cms_menu_ledstrip.c \
127 cms
/cms_menu_misc.c \
129 cms
/cms_menu_power.c \
130 cms
/cms_menu_vtx_rtc6705.c \
131 cms
/cms_menu_vtx_smartaudio.c \
132 cms
/cms_menu_vtx_tramp.c \
133 drivers
/display_ug2864hsweg01.c \
134 drivers
/light_ws2811strip.c \
135 drivers
/rangefinder
/rangefinder_hcsr04.c \
136 drivers
/rangefinder
/rangefinder_lidartf.c \
137 drivers
/serial_escserial.c \
138 drivers
/vtx_common.c \
140 io
/displayport_max7456.c \
141 io
/displayport_msp.c \
142 io
/displayport_oled.c \
143 io
/displayport_rcdevice.c \
144 io
/displayport_srxl.c \
145 io
/displayport_crsf.c \
153 sensors
/barometer.c \
154 sensors
/rangefinder.c \
155 telemetry
/telemetry.c \
158 telemetry
/frsky_hub.c \
160 telemetry
/jetiexbus.c \
161 telemetry
/smartport.c \
163 telemetry
/mavlink.c \
164 telemetry
/msp_shared.c \
166 telemetry
/ibus_shared.c \
167 sensors
/esc_sensor.c \
171 io
/vtx_smartaudio.c \
175 COMMON_DEVICE_SRC
= \
177 $(DEVICE_STDPERIPH_SRC
)
179 ifeq ($(OSD_SLAVE
),yes
)
180 TARGET_FLAGS
:= -DUSE_OSD_SLAVE
$(TARGET_FLAGS
)
181 COMMON_SRC
:= $(COMMON_SRC
) $(OSD_SLAVE_SRC
) $(COMMON_DEVICE_SRC
)
183 COMMON_SRC
:= $(COMMON_SRC
) $(FC_SRC
) $(COMMON_DEVICE_SRC
)
186 ifeq ($(SIMULATOR_BUILD
),yes
)
187 TARGET_FLAGS
:= -DSIMULATOR_BUILD
$(TARGET_FLAGS
)
190 SPEED_OPTIMISED_SRC
:= ""
191 SIZE_OPTIMISED_SRC
:= ""
193 ifneq ($(TARGET
),$(filter $(TARGET
),$(F1_TARGETS
)))
194 SPEED_OPTIMISED_SRC
:= $(SPEED_OPTIMISED_SRC
) \
198 common
/typeconversion.c \
199 drivers
/accgyro
/accgyro_fake.c \
200 drivers
/accgyro
/accgyro_mpu.c \
201 drivers
/accgyro
/accgyro_mpu3050.c \
202 drivers
/accgyro
/accgyro_mpu6050.c \
203 drivers
/accgyro
/accgyro_mpu6500.c \
204 drivers
/accgyro
/accgyro_spi_bmi160.c \
205 drivers
/accgyro
/accgyro_spi_icm20689.c \
206 drivers
/accgyro
/accgyro_spi_mpu6000.c \
207 drivers
/accgyro
/accgyro_spi_mpu6500.c \
208 drivers
/accgyro
/accgyro_spi_mpu9250.c \
209 drivers
/accgyro_legacy
/accgyro_adxl345.c \
210 drivers
/accgyro_legacy
/accgyro_bma280.c \
211 drivers
/accgyro_legacy
/accgyro_l3g4200d.c \
212 drivers
/accgyro_legacy
/accgyro_l3gd20.c \
213 drivers
/accgyro_legacy
/accgyro_lsm303dlhc.c \
214 drivers
/accgyro_legacy
/accgyro_mma845x.c \
216 drivers
/buf_writer.c \
221 drivers
/pwm_output.c \
224 drivers
/serial_uart.c \
231 fc/runtime_config.c \
245 scheduler
/scheduler.c \
246 sensors
/acceleration.c \
247 sensors
/boardalignment.c \
249 sensors
/gyroanalyse.c \
251 $(DEVICE_STDPERIPH_SRC
) \
253 SIZE_OPTIMISED_SRC
:= $(SIZE_OPTIMISED_SRC
) \
254 bus_bst_stm32f30x.c \
255 drivers
/barometer
/barometer_bmp085.c \
256 drivers
/barometer
/barometer_bmp280.c \
257 drivers
/barometer
/barometer_fake.c \
258 drivers
/barometer
/barometer_ms5611.c \
259 drivers
/barometer
/barometer_lps.c \
260 drivers
/barometer
/barometer_qmp6988.c \
261 drivers
/bus_i2c_config.c \
262 drivers
/bus_spi_config.c \
263 drivers
/bus_spi_pinconfig.c \
264 drivers
/compass
/compass_ak8963.c \
265 drivers
/compass
/compass_ak8975.c \
266 drivers
/compass
/compass_fake.c \
267 drivers
/compass
/compass_hmc5883l.c \
268 drivers
/compass
/compass_qmc5883l.c \
269 drivers
/display_ug2864hsweg01.c \
271 drivers
/light_ws2811strip.c \
272 drivers
/light_ws2811strip_hal.c \
273 drivers
/light_ws2811strip_stdperiph.c \
274 drivers
/serial_escserial.c \
275 drivers
/serial_pinconfig.c \
276 drivers
/serial_tcp.c \
277 drivers
/serial_uart_init.c \
278 drivers
/serial_uart_pinconfig.c \
279 drivers
/serial_usb_vcp.c \
280 drivers
/transponder_ir_io_hal.c \
281 drivers
/transponder_ir_io_stdperiph.c \
282 drivers
/vtx_rtc6705_soft_spi.c \
283 drivers
/vtx_rtc6705.c \
284 drivers
/vtx_common.c \
287 config
/config_eeprom.c \
289 config
/config_streamer.c \
292 interface
/settings.c \
297 io
/serial_4way_avrootloader.c \
298 io
/serial_4way_stk500v2.c \
299 io
/transponder_ir.c \
302 cms
/cms_menu_blackbox.c \
303 cms
/cms_menu_builtin.c \
305 cms
/cms_menu_ledstrip.c \
306 cms
/cms_menu_misc.c \
308 cms
/cms_menu_power.c \
309 cms
/cms_menu_vtx_rtc6705.c \
310 cms
/cms_menu_vtx_smartaudio.c \
311 cms
/cms_menu_vtx_tramp.c \
315 io
/vtx_smartaudio.c \
318 io
/spektrum_vtx_control.c \
321 # F4 and F7 optimizations
322 ifneq ($(TARGET
),$(filter $(TARGET
),$(F3_TARGETS
)))
323 SPEED_OPTIMISED_SRC
:= $(SPEED_OPTIMISED_SRC
) \
324 drivers
/bus_i2c_hal.c \
325 drivers
/bus_spi_ll.c \
327 drivers
/pwm_output_dshot.c \
328 drivers
/pwm_output_dshot_hal.c
332 # check if target.mk supplied
333 SRC
:= $(STARTUP_SRC
) $(MCU_COMMON_SRC
) $(TARGET_SRC
) $(VARIANT_SRC
)
337 INCLUDE_DIRS
+= $(DSP_LIB
)/Include
339 SRC
+= $(DSP_LIB
)/Source
/BasicMathFunctions
/arm_mult_f32.c
340 SRC
+= $(DSP_LIB
)/Source
/TransformFunctions
/arm_rfft_fast_f32.c
341 SRC
+= $(DSP_LIB
)/Source
/TransformFunctions
/arm_cfft_f32.c
342 SRC
+= $(DSP_LIB
)/Source
/TransformFunctions
/arm_rfft_fast_init_f32.c
343 SRC
+= $(DSP_LIB
)/Source
/TransformFunctions
/arm_cfft_radix8_f32.c
344 SRC
+= $(DSP_LIB
)/Source
/CommonTables
/arm_common_tables.c
346 SRC
+= $(DSP_LIB
)/Source
/ComplexMathFunctions
/arm_cmplx_mag_f32.c
347 SRC
+= $(DSP_LIB
)/Source
/StatisticsFunctions
/arm_max_f32.c
349 SRC
+= $(wildcard $(DSP_LIB
)/Source
/*/*.S
)
352 ifneq ($(filter ONBOARDFLASH
,$(FEATURES
)),)
355 drivers
/flash_m25p16.c \
356 drivers
/flash_w25m.c \
365 SRC
:= $(filter-out $(MCU_EXCLUDES
), $(SRC
))
367 ifneq ($(filter SDCARD
,$(FEATURES
)),)
370 drivers
/sdcard_standard.c \
371 io
/asyncfatfs
/asyncfatfs.c \
372 io
/asyncfatfs
/fat_standard.c \
376 ifneq ($(filter SDIO
,$(FEATURES
)),)
378 drivers
/sdcard_sdio_baremetal.c \
379 drivers
/sdcard_standard.c \
380 io
/asyncfatfs
/asyncfatfs.c \
381 io
/asyncfatfs
/fat_standard.c \
386 ifneq ($(filter VCP
,$(FEATURES
)),)
390 ifneq ($(filter MSC
,$(FEATURES
)),)
393 # end target specific make file checks
395 # Search path and source files for the ST stdperiph library
396 VPATH
:= $(VPATH
):$(STDPERIPH_DIR
)/src