12 pg
/displayport_profiles.c \
28 pg
/pin_pull_up_down.c \
36 pg
/rx_spi_expresslrs.c \
50 build
/build_config.c \
57 common
/colorconversion.c \
60 common
/explog_approx.c \
62 common
/gps_conversion.c \
64 common
/huffman_table.c \
67 common
/printf_serial.c \
70 common
/sensor_alignment.c \
73 common
/string_light.c \
76 common
/typeconversion.c \
80 config
/config_eeprom.c \
81 config
/config_streamer.c \
83 config
/simplified_tuning.c \
88 drivers
/dshot_dpwm.c \
89 drivers
/dshot_command.c \
90 drivers
/buf_writer.c \
92 drivers
/bus_i2c_busdev.c \
93 drivers
/bus_i2c_utils.c \
94 drivers
/bus_i2c_soft.c \
95 drivers
/bus_octospi.c \
96 drivers
/bus_quadspi.c \
98 drivers
/camera_control.c \
100 drivers
/display_canvas.c \
101 drivers
/dma_common.c \
103 drivers
/light_led.c \
107 drivers
/pin_pull_up_down.c \
110 drivers
/serial_impl.c \
111 drivers
/serial_uart_hw.c \
112 drivers
/sound_beeper.c \
113 drivers
/stack_check.c \
114 drivers
/timer_common.c \
115 drivers
/transponder_ir_arcitimer.c \
116 drivers
/transponder_ir_ilap.c \
117 drivers
/transponder_ir_erlt.c \
122 fc/runtime_config.c \
127 io
/serial_resource.c \
128 io
/smartaudio_protocol.c \
129 io
/statusindicator.c \
130 io
/tramp_protocol.c \
131 io
/transponder_ir.c \
136 msp
/msp_build_info.c \
138 scheduler
/scheduler.c \
139 sensors
/adcinternal.c \
143 target
/config_helper.c \
145 fc/controlrate_profile.c \
146 drivers
/accgyro
/gyro_sync.c \
147 drivers
/rx
/rx_spi.c \
148 drivers
/rx
/rx_xn297.c \
149 drivers
/rx
/rx_pwm.c \
150 drivers
/serial_softserial.c \
154 fc/rc_adjustments.c \
159 flight
/dyn_notch_filter.c \
161 flight
/gps_rescue.c \
164 flight
/mixer_init.c \
165 flight
/mixer_tricopter.c \
170 flight
/rpm_filter.c \
172 flight
/servos_tricopter.c \
174 io
/serial_4way_avrootloader.c \
175 io
/serial_4way_stk500v2.c \
192 io
/spektrum_vtx_control.c \
199 sensors
/acceleration.c \
200 sensors
/acceleration_init.c \
201 sensors
/boardalignment.c \
204 sensors
/gyro_init.c \
205 sensors
/initialisation.c \
206 blackbox
/blackbox.c \
207 blackbox
/blackbox_encoding.c \
208 blackbox
/blackbox_io.c \
210 cms
/cms_menu_blackbox.c \
211 cms
/cms_menu_failsafe.c \
212 cms
/cms_menu_firmware.c \
213 cms
/cms_menu_gps_rescue.c \
214 cms
/cms_menu_gps_lap_timer.c \
216 cms
/cms_menu_ledstrip.c \
217 cms
/cms_menu_main.c \
218 cms
/cms_menu_misc.c \
220 cms
/cms_menu_power.c \
221 cms
/cms_menu_saveexit.c \
222 cms
/cms_menu_vtx_common.c \
223 cms
/cms_menu_vtx_rtc6705.c \
224 cms
/cms_menu_vtx_smartaudio.c \
225 cms
/cms_menu_vtx_tramp.c \
226 cms
/cms_menu_persistent_stats.c \
227 cms
/cms_menu_rpm_limit.c \
228 cms
/cms_menu_quick.c \
229 drivers
/display_ug2864hsweg01.c \
230 drivers
/light_ws2811strip.c \
231 drivers
/rangefinder
/rangefinder_hcsr04.c \
232 drivers
/rangefinder
/rangefinder_lidartf.c \
233 drivers
/rangefinder
/rangefinder_lidarmt.c \
234 drivers
/vtx_common.c \
235 drivers
/vtx_table.c \
237 io
/displayport_frsky_osd.c \
238 io
/displayport_max7456.c \
239 io
/displayport_msp.c \
240 io
/displayport_oled.c \
241 io
/displayport_srxl.c \
242 io
/displayport_crsf.c \
243 io
/displayport_hott.c \
245 io
/gimbal_control.c \
254 sensors
/barometer.c \
255 sensors
/rangefinder.c \
256 sensors
/opticalflow.c \
257 telemetry
/telemetry.c \
261 telemetry
/frsky_hub.c \
263 telemetry
/jetiexbus.c \
264 telemetry
/smartport.c \
266 telemetry
/mavlink.c \
267 telemetry
/msp_shared.c \
269 telemetry
/ibus_shared.c \
270 sensors
/esc_sensor.c \
273 io
/vtx_smartaudio.c \
277 cms
/cms_menu_vtx_msp.c
279 ifneq ($(SIMULATOR_BUILD
),yes
)
283 drivers
/serial_uart.c \
284 drivers
/accgyro
/accgyro_mpu3050.c \
285 drivers
/accgyro
/accgyro_mpu6050.c \
286 drivers
/accgyro
/accgyro_mpu6500.c \
287 drivers
/accgyro
/accgyro_mpu.c \
288 drivers
/accgyro
/accgyro_spi_bmi160.c \
289 drivers
/accgyro
/accgyro_spi_bmi270.c \
290 drivers
/accgyro
/accgyro_spi_icm20649.c \
291 drivers
/accgyro
/accgyro_spi_icm20689.c \
292 drivers
/accgyro
/accgyro_spi_icm426xx.c \
293 drivers
/accgyro
/accgyro_spi_l3gd20.c \
294 drivers
/accgyro
/accgyro_spi_lsm6dso.c \
295 drivers
/accgyro
/accgyro_spi_lsm6dso_init.c \
296 drivers
/accgyro
/accgyro_spi_lsm6dsv16x.c \
297 drivers
/accgyro
/accgyro_spi_mpu6000.c \
298 drivers
/accgyro
/accgyro_spi_mpu6500.c \
299 drivers
/accgyro
/accgyro_spi_mpu9250.c \
300 drivers
/accgyro
/accgyro_virtual.c \
301 drivers
/accgyro
/gyro_sync.c \
302 BoschSensortec
/BMI270-Sensor-API
/bmi270_maximum_fifo.c \
303 drivers
/barometer
/barometer_2smpb_02b.c \
304 drivers
/barometer
/barometer_bmp085.c \
305 drivers
/barometer
/barometer_bmp280.c \
306 drivers
/barometer
/barometer_bmp388.c \
307 drivers
/barometer
/barometer_dps310.c \
308 drivers
/barometer
/barometer_lps22df.c \
309 drivers
/barometer
/barometer_lps.c \
310 drivers
/barometer
/barometer_ms5611.c \
311 drivers
/barometer
/barometer_qmp6988.c \
312 drivers
/barometer
/barometer_virtual.c \
313 drivers
/compass
/compass_ak8963.c \
314 drivers
/compass
/compass_ak8975.c \
315 drivers
/compass
/compass_hmc5883l.c \
316 drivers
/compass
/compass_ist8310.c \
317 drivers
/compass
/compass_lis2mdl.c \
318 drivers
/compass
/compass_lis3mdl.c \
319 drivers
/compass
/compass_mpu925x_ak8963.c \
320 drivers
/compass
/compass_qmc5883l.c \
321 drivers
/compass
/compass_virtual.c \
323 drivers
/vtx_rtc6705.c \
324 drivers
/vtx_rtc6705_soft_spi.c
326 ifneq ($(GYRO_DEFINE
),)
328 LEGACY_GYRO_DEFINES
:= USE_GYRO_L3GD20
329 ifneq ($(findstring $(GYRO_DEFINE
),$(LEGACY_GYRO_DEFINES
)),)
332 drivers
/accgyro
/legacy
/accgyro_adxl345.c \
333 drivers
/accgyro
/legacy
/accgyro_bma280.c \
334 drivers
/accgyro
/legacy
/accgyro_l3g4200d.c \
335 drivers
/accgyro
/legacy
/accgyro_lsm303dlhc.c \
336 drivers
/accgyro
/legacy
/accgyro_mma845x.c
338 COMMON_SRC
+= $(LEGACY_SRC
)
339 SPEED_OPTIMISED_SRC
+= $(LEGACY_SRC
)
345 drivers
/rx
/expresslrs_driver.c \
346 drivers
/rx
/rx_a7105.c \
347 drivers
/rx
/rx_cc2500.c \
348 drivers
/rx
/rx_cyrf6936.c \
349 drivers
/rx
/rx_nrf24l01.c \
350 drivers
/rx
/rx_pwm.c \
351 drivers
/rx
/rx_spi.c \
352 drivers
/rx
/rx_sx127x.c \
353 drivers
/rx
/rx_sx1280.c \
354 drivers
/rx
/rx_xn297.c \
356 rx
/cc2500_frsky_shared.c \
357 rx
/cc2500_frsky_d.c \
358 rx
/cc2500_frsky_x.c \
360 rx
/cc2500_redpine.c \
362 rx
/cyrf6936_spektrum.c \
364 rx
/expresslrs_common.c \
365 rx
/expresslrs_telemetry.c
368 drivers
/flash
/flash.c \
369 drivers
/flash
/flash_m25p16.c \
370 drivers
/flash
/flash_w25m.c \
371 drivers
/flash
/flash_w25n.c \
372 drivers
/flash
/flash_w25q128fv.c \
377 drivers
/sdcard_spi.c \
378 drivers
/sdcard_sdio_baremetal.c \
379 drivers
/sdcard_standard.c \
380 io
/asyncfatfs
/asyncfatfs.c \
381 io
/asyncfatfs
/fat_standard.c
383 INCLUDE_DIRS
:= $(INCLUDE_DIRS
) \
385 VPATH
:= $(VPATH
):$(FATFS_DIR
)
387 # Gyro driver files that only contain initialization and configuration code - not runtime code
388 SIZE_OPTIMISED_SRC
+= \
389 drivers
/accgyro
/accgyro_mpu6050.c \
390 drivers
/accgyro
/accgyro_mpu6500.c \
391 drivers
/accgyro
/accgyro_spi_mpu6000.c \
392 drivers
/accgyro
/accgyro_spi_mpu6500.c \
393 drivers
/accgyro
/accgyro_spi_mpu9250.c \
394 drivers
/accgyro
/accgyro_spi_icm20689.c \
395 drivers
/accgyro
/accgyro_spi_icm426xx.c \
396 drivers
/accgyro
/accgyro_spi_lsm6dso_init.c \
397 drivers
/barometer
/barometer_bmp085.c \
398 drivers
/barometer
/barometer_bmp280.c \
399 drivers
/barometer
/barometer_ms5611.c \
400 drivers
/barometer
/barometer_lps.c \
401 drivers
/barometer
/barometer_qmp6988.c \
402 drivers
/barometer
/barometer_2smpb_02b.c \
403 drivers
/compass
/compass_ak8963.c \
404 drivers
/compass
/compass_ak8975.c \
405 drivers
/compass
/compass_hmc5883l.c \
406 drivers
/compass
/compass_qmc5883l.c \
407 drivers
/compass
/compass_lis2mdl.c \
408 drivers
/compass
/compass_lis3mdl.c \
409 drivers
/compass
/compass_ist8310.c \
410 drivers
/display_ug2864hsweg01.c \
411 drivers
/vtx_rtc6705_soft_spi.c \
412 drivers
/vtx_rtc6705.c
415 SPEED_OPTIMISED_SRC
+= \
417 drivers
/serial_uart.c \
418 drivers
/accgyro
/accgyro_mpu.c \
419 drivers
/accgyro
/accgyro_mpu3050.c \
420 drivers
/accgyro
/accgyro_spi_bmi160.c \
421 drivers
/accgyro
/accgyro_spi_bmi270.c \
422 drivers
/accgyro
/accgyro_spi_lsm6dso.c
426 COMMON_DEVICE_SRC
= \
428 $(DEVICE_STDPERIPH_SRC
)
430 COMMON_SRC
:= $(COMMON_SRC
) $(COMMON_DEVICE_SRC
) $(RX_SRC
)
433 TARGET_FLAGS
:= -DUSE_EXST
$(TARGET_FLAGS
)
436 ifeq ($(RAM_BASED
),yes
)
437 TARGET_FLAGS
:= -DUSE_EXST
-DCONFIG_IN_RAM
-DRAMBASED
$(TARGET_FLAGS
)
440 ifeq ($(SIMULATOR_BUILD
),yes
)
441 TARGET_FLAGS
:= -DSIMULATOR_BUILD
$(TARGET_FLAGS
)
444 SPEED_OPTIMISED_SRC
+= \
451 common
/typeconversion.c \
453 drivers
/buf_writer.c \
455 drivers
/bus_quadspi.c \
462 fc/runtime_config.c \
463 flight
/dyn_notch_filter.c \
467 flight
/rpm_filter.c \
482 scheduler
/scheduler.c \
483 sensors
/acceleration.c \
484 sensors
/boardalignment.c \
487 $(DEVICE_STDPERIPH_SRC
) \
489 SIZE_OPTIMISED_SRC
+= \
490 sensors
/gyro_init.c \
491 sensors
/acceleration_init.c \
493 flight
/mixer_init.c \
496 drivers
/light_ws2811strip.c \
497 drivers
/vtx_common.c \
500 config
/config_eeprom.c \
502 config
/config_streamer.c \
503 config
/simplified_tuning.c \
507 io
/serial_4way_avrootloader.c \
508 io
/serial_4way_stk500v2.c \
509 io
/transponder_ir.c \
513 cms
/cms_menu_blackbox.c \
514 cms
/cms_menu_failsafe.c \
515 cms
/cms_menu_firmware.c \
516 cms
/cms_menu_gps_rescue.c \
517 cms
/cms_menu_gps_lap_timer.c \
519 cms
/cms_menu_ledstrip.c \
520 cms
/cms_menu_main.c \
521 cms
/cms_menu_misc.c \
523 cms
/cms_menu_power.c \
524 cms
/cms_menu_saveexit.c \
525 cms
/cms_menu_vtx_common.c \
526 cms
/cms_menu_vtx_rtc6705.c \
527 cms
/cms_menu_vtx_smartaudio.c \
528 cms
/cms_menu_vtx_tramp.c \
529 cms
/cms_menu_persistent_stats.c \
530 cms
/cms_menu_rpm_limit.c \
531 cms
/cms_menu_quick.c \
534 io
/vtx_smartaudio.c \
537 io
/spektrum_vtx_control.c \
543 cms
/cms_menu_vtx_msp.c
545 # check if target.mk supplied
546 SRC
:= $(STARTUP_SRC
) $(MCU_COMMON_SRC
) $(TARGET_SRC
) $(VARIANT_SRC
)
548 # Files that should not be optimized, useful for debugging IMPRECISE cpu faults.
549 # Specify FULL PATH, e.g. "./lib/main/STM32F7/Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_ll_sdmmc.c"
550 NOT_OPTIMISED_SRC
:= $(NOT_OPTIMISED_SRC
) \
554 INCLUDE_DIRS
+= $(DSP_LIB
)/Include
555 SRC
+= $(wildcard $(DSP_LIB
)/Source
/*/*.S
)
559 SRC
+= $(FLASH_SRC
) $(MSC_SRC
) $(SDCARD_SRC
) $(COMMON_SRC
)
562 SRC
:= $(filter-out $(MCU_EXCLUDES
), $(SRC
))
566 # end target specific make file checks
568 # Search path and source files for the Open Location Code library
569 OLC_DIR
:= google
/olc
572 INCLUDE_DIRS
+= $(LIB_MAIN_DIR
)/$(OLC_DIR
)
573 SRC
+= $(OLC_DIR
)/olc.c
574 SIZE_OPTIMISED_SRC
+= $(OLC_DIR
)/olc.c