11 pg
/displayport_profiles.c \
24 pg
/position_control.c \
26 pg
/pin_pull_up_down.c \
33 pg
/rx_spi_expresslrs.c \
47 build
/build_config.c \
54 common
/colorconversion.c \
57 common
/explog_approx.c \
59 common
/gps_conversion.c \
61 common
/huffman_table.c \
64 common
/printf_serial.c \
67 common
/sensor_alignment.c \
70 common
/string_light.c \
73 common
/typeconversion.c \
77 config
/config_eeprom.c \
78 config
/config_streamer.c \
80 config
/simplified_tuning.c \
86 drivers
/dshot_dpwm.c \
87 drivers
/dshot_command.c \
88 drivers
/buf_writer.c \
90 drivers
/bus_i2c_config.c \
91 drivers
/bus_i2c_busdev.c \
92 drivers
/bus_i2c_utils.c \
93 drivers
/bus_i2c_soft.c \
94 drivers
/bus_octospi.c \
95 drivers
/bus_quadspi.c \
97 drivers
/bus_spi_config.c \
98 drivers
/bus_spi_pinconfig.c \
100 drivers
/camera_control.c \
102 drivers
/display_canvas.c \
103 drivers
/dma_common.c \
105 drivers
/light_led.c \
109 drivers
/pin_pull_up_down.c \
112 drivers
/serial_pinconfig.c \
113 drivers
/serial_uart.c \
114 drivers
/serial_uart_pinconfig.c \
115 drivers
/sound_beeper.c \
116 drivers
/stack_check.c \
118 drivers
/timer_common.c \
119 drivers
/transponder_ir_arcitimer.c \
120 drivers
/transponder_ir_ilap.c \
121 drivers
/transponder_ir_erlt.c \
126 fc/runtime_config.c \
131 io
/smartaudio_protocol.c \
132 io
/statusindicator.c \
133 io
/tramp_protocol.c \
134 io
/transponder_ir.c \
139 msp
/msp_build_info.c \
141 scheduler
/scheduler.c \
142 sensors
/adcinternal.c \
146 target
/config_helper.c \
148 fc/controlrate_profile.c \
149 drivers
/accgyro
/gyro_sync.c \
150 drivers
/rx
/rx_spi.c \
151 drivers
/rx
/rx_xn297.c \
152 drivers
/rx
/rx_pwm.c \
153 drivers
/serial_softserial.c \
156 fc/rc_adjustments.c \
160 flight
/position_control.c \
162 flight
/gps_rescue.c \
164 flight
/dyn_notch_filter.c \
168 flight
/mixer_init.c \
169 flight
/mixer_tricopter.c \
172 flight
/rpm_filter.c \
174 flight
/servos_tricopter.c \
176 io
/serial_4way_avrootloader.c \
177 io
/serial_4way_stk500v2.c \
194 io
/spektrum_vtx_control.c \
201 sensors
/acceleration.c \
202 sensors
/acceleration_init.c \
203 sensors
/boardalignment.c \
206 sensors
/gyro_init.c \
207 sensors
/initialisation.c \
208 blackbox
/blackbox.c \
209 blackbox
/blackbox_encoding.c \
210 blackbox
/blackbox_io.c \
212 cms
/cms_menu_blackbox.c \
213 cms
/cms_menu_failsafe.c \
214 cms
/cms_menu_firmware.c \
215 cms
/cms_menu_gps_rescue.c \
216 cms
/cms_menu_gps_lap_timer.c \
218 cms
/cms_menu_ledstrip.c \
219 cms
/cms_menu_main.c \
220 cms
/cms_menu_misc.c \
222 cms
/cms_menu_power.c \
223 cms
/cms_menu_saveexit.c \
224 cms
/cms_menu_vtx_common.c \
225 cms
/cms_menu_vtx_rtc6705.c \
226 cms
/cms_menu_vtx_smartaudio.c \
227 cms
/cms_menu_vtx_tramp.c \
228 cms
/cms_menu_persistent_stats.c \
229 cms
/cms_menu_rpm_limit.c \
230 cms
/cms_menu_quick.c \
231 drivers
/display_ug2864hsweg01.c \
232 drivers
/light_ws2811strip.c \
233 drivers
/rangefinder
/rangefinder_hcsr04.c \
234 drivers
/rangefinder
/rangefinder_lidartf.c \
235 drivers
/serial_escserial.c \
236 drivers
/vtx_common.c \
237 drivers
/vtx_table.c \
239 io
/displayport_frsky_osd.c \
240 io
/displayport_max7456.c \
241 io
/displayport_msp.c \
242 io
/displayport_oled.c \
243 io
/displayport_srxl.c \
244 io
/displayport_crsf.c \
245 io
/displayport_hott.c \
255 sensors
/barometer.c \
256 sensors
/rangefinder.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
)
282 drivers
/accgyro
/accgyro_mpu3050.c \
283 drivers
/accgyro
/accgyro_mpu6050.c \
284 drivers
/accgyro
/accgyro_mpu6500.c \
285 drivers
/accgyro
/accgyro_mpu.c \
286 drivers
/accgyro
/accgyro_spi_bmi160.c \
287 drivers
/accgyro
/accgyro_spi_bmi270.c \
288 drivers
/accgyro
/accgyro_spi_icm20649.c \
289 drivers
/accgyro
/accgyro_spi_icm20689.c \
290 drivers
/accgyro
/accgyro_spi_icm426xx.c \
291 drivers
/accgyro
/accgyro_spi_l3gd20.c \
292 drivers
/accgyro
/accgyro_spi_lsm6dso.c \
293 drivers
/accgyro
/accgyro_spi_lsm6dso_init.c \
294 drivers
/accgyro
/accgyro_spi_lsm6dsv16x.c \
295 drivers
/accgyro
/accgyro_spi_mpu6000.c \
296 drivers
/accgyro
/accgyro_spi_mpu6500.c \
297 drivers
/accgyro
/accgyro_spi_mpu9250.c \
298 drivers
/accgyro
/accgyro_virtual.c \
299 drivers
/accgyro
/gyro_sync.c \
300 $(ROOT
)/lib
/main
/BoschSensortec
/BMI270-Sensor-API
/bmi270_maximum_fifo.c \
301 drivers
/barometer
/barometer_2smpb_02b.c \
302 drivers
/barometer
/barometer_bmp085.c \
303 drivers
/barometer
/barometer_bmp280.c \
304 drivers
/barometer
/barometer_bmp388.c \
305 drivers
/barometer
/barometer_dps310.c \
306 drivers
/barometer
/barometer_lps22df.c \
307 drivers
/barometer
/barometer_lps.c \
308 drivers
/barometer
/barometer_ms5611.c \
309 drivers
/barometer
/barometer_qmp6988.c \
310 drivers
/barometer
/barometer_virtual.c \
311 drivers
/compass
/compass_ak8963.c \
312 drivers
/compass
/compass_ak8975.c \
313 drivers
/compass
/compass_hmc5883l.c \
314 drivers
/compass
/compass_ist8310.c \
315 drivers
/compass
/compass_lis2mdl.c \
316 drivers
/compass
/compass_lis3mdl.c \
317 drivers
/compass
/compass_mpu925x_ak8963.c \
318 drivers
/compass
/compass_qmc5883l.c \
319 drivers
/compass
/compass_virtual.c \
321 drivers
/vtx_rtc6705.c \
322 drivers
/vtx_rtc6705_soft_spi.c
324 ifneq ($(GYRO_DEFINE
),)
326 LEGACY_GYRO_DEFINES
:= USE_GYRO_L3GD20
327 ifneq ($(findstring $(GYRO_DEFINE
),$(LEGACY_GYRO_DEFINES
)),)
330 drivers
/accgyro
/legacy
/accgyro_adxl345.c \
331 drivers
/accgyro
/legacy
/accgyro_bma280.c \
332 drivers
/accgyro
/legacy
/accgyro_l3g4200d.c \
333 drivers
/accgyro
/legacy
/accgyro_lsm303dlhc.c \
334 drivers
/accgyro
/legacy
/accgyro_mma845x.c
341 drivers
/rx
/expresslrs_driver.c \
342 drivers
/rx
/rx_a7105.c \
343 drivers
/rx
/rx_cc2500.c \
344 drivers
/rx
/rx_cyrf6936.c \
345 drivers
/rx
/rx_nrf24l01.c \
346 drivers
/rx
/rx_pwm.c \
347 drivers
/rx
/rx_spi.c \
348 drivers
/rx
/rx_sx127x.c \
349 drivers
/rx
/rx_sx1280.c \
350 drivers
/rx
/rx_xn297.c \
352 rx
/cc2500_frsky_shared.c \
353 rx
/cc2500_frsky_d.c \
354 rx
/cc2500_frsky_x.c \
356 rx
/cc2500_redpine.c \
358 rx
/cyrf6936_spektrum.c \
360 rx
/expresslrs_common.c \
361 rx
/expresslrs_telemetry.c
364 drivers
/flash
/flash.c \
365 drivers
/flash
/flash_m25p16.c \
366 drivers
/flash
/flash_w25m.c \
367 drivers
/flash
/flash_w25n.c \
368 drivers
/flash
/flash_w25q128fv.c \
373 drivers
/sdcard_spi.c \
374 drivers
/sdcard_sdio_baremetal.c \
375 drivers
/sdcard_standard.c \
376 io
/asyncfatfs
/asyncfatfs.c \
377 io
/asyncfatfs
/fat_standard.c
379 INCLUDE_DIRS
:= $(INCLUDE_DIRS
) \
381 VPATH
:= $(VPATH
):$(FATFS_DIR
)
385 COMMON_DEVICE_SRC
= \
387 $(DEVICE_STDPERIPH_SRC
)
389 COMMON_SRC
:= $(COMMON_SRC
) $(COMMON_DEVICE_SRC
) $(RX_SRC
)
392 TARGET_FLAGS
:= -DUSE_EXST
$(TARGET_FLAGS
)
395 ifeq ($(RAM_BASED
),yes
)
396 TARGET_FLAGS
:= -DUSE_EXST
-DCONFIG_IN_RAM
-DRAMBASED
$(TARGET_FLAGS
)
399 ifeq ($(SIMULATOR_BUILD
),yes
)
400 TARGET_FLAGS
:= -DSIMULATOR_BUILD
$(TARGET_FLAGS
)
403 SPEED_OPTIMISED_SRC
:= ""
404 SIZE_OPTIMISED_SRC
:= ""
406 SPEED_OPTIMISED_SRC
:= $(SPEED_OPTIMISED_SRC
) \
413 common
/typeconversion.c \
415 drivers
/accgyro
/accgyro_mpu.c \
416 drivers
/accgyro
/accgyro_mpu3050.c \
417 drivers
/accgyro
/accgyro_spi_bmi160.c \
418 drivers
/accgyro
/accgyro_spi_bmi270.c \
419 drivers
/accgyro
/accgyro_spi_lsm6dso.c \
420 drivers
/accgyro_legacy
/accgyro_adxl345.c \
421 drivers
/accgyro_legacy
/accgyro_bma280.c \
422 drivers
/accgyro_legacy
/accgyro_l3g4200d.c \
423 drivers
/accgyro_legacy
/accgyro_l3gd20.c \
424 drivers
/accgyro_legacy
/accgyro_lsm303dlhc.c \
425 drivers
/accgyro_legacy
/accgyro_mma845x.c \
427 drivers
/buf_writer.c \
429 drivers
/bus_quadspi.c \
433 drivers
/pwm_output.c \
436 drivers
/serial_uart.c \
443 fc/runtime_config.c \
444 flight
/dyn_notch_filter.c \
448 flight
/rpm_filter.c \
462 scheduler
/scheduler.c \
463 sensors
/acceleration.c \
464 sensors
/boardalignment.c \
467 $(DEVICE_STDPERIPH_SRC
) \
469 SIZE_OPTIMISED_SRC
:= $(SIZE_OPTIMISED_SRC
) \
470 $(shell find
$(SRC_DIR
) -name
'*_init.c') \
471 bus_bst_stm32f30x.c \
474 drivers
/accgyro
/accgyro_fake.c \
475 drivers
/barometer
/barometer_bmp085.c \
476 drivers
/barometer
/barometer_bmp280.c \
477 drivers
/barometer
/barometer_fake.c \
478 drivers
/barometer
/barometer_ms5611.c \
479 drivers
/barometer
/barometer_lps.c \
480 drivers
/barometer
/barometer_qmp6988.c \
481 drivers
/barometer
/barometer_2smpb_02b.c \
482 drivers
/bus_i2c_config.c \
483 drivers
/bus_i2c_timing.c \
484 drivers
/bus_spi_config.c \
485 drivers
/bus_spi_pinconfig.c \
486 drivers
/compass
/compass_ak8963.c \
487 drivers
/compass
/compass_ak8975.c \
488 drivers
/compass
/compass_fake.c \
489 drivers
/compass
/compass_hmc5883l.c \
490 drivers
/compass
/compass_qmc5883l.c \
491 drivers
/compass
/compass_lis2mdl.c \
492 drivers
/compass
/compass_lis3mdl.c \
493 drivers
/compass
/compass_ist8310.c \
494 drivers
/display_ug2864hsweg01.c \
496 drivers
/light_ws2811strip.c \
497 drivers
/serial_escserial.c \
498 drivers
/serial_pinconfig.c \
499 drivers
/serial_tcp.c \
500 drivers
/serial_uart_pinconfig.c \
501 drivers
/serial_usb_vcp.c \
502 drivers
/vtx_rtc6705_soft_spi.c \
503 drivers
/vtx_rtc6705.c \
504 drivers
/vtx_common.c \
507 config
/config_eeprom.c \
509 config
/config_streamer.c \
510 config
/simplified_tuning.c \
515 io
/serial_4way_avrootloader.c \
516 io
/serial_4way_stk500v2.c \
517 io
/transponder_ir.c \
521 cms
/cms_menu_blackbox.c \
522 cms
/cms_menu_failsafe.c \
523 cms
/cms_menu_firmware.c \
524 cms
/cms_menu_gps_rescue.c \
525 cms
/cms_menu_gps_lap_timer.c \
527 cms
/cms_menu_ledstrip.c \
528 cms
/cms_menu_main.c \
529 cms
/cms_menu_misc.c \
531 cms
/cms_menu_power.c \
532 cms
/cms_menu_saveexit.c \
533 cms
/cms_menu_vtx_common.c \
534 cms
/cms_menu_vtx_rtc6705.c \
535 cms
/cms_menu_vtx_smartaudio.c \
536 cms
/cms_menu_vtx_tramp.c \
537 cms
/cms_menu_persistent_stats.c \
538 cms
/cms_menu_rpm_limit.c \
539 cms
/cms_menu_quick.c \
542 io
/vtx_smartaudio.c \
545 io
/spektrum_vtx_control.c \
551 cms
/cms_menu_vtx_msp.c
553 # Gyro driver files that only contain initialization and configuration code - not runtime code
554 SIZE_OPTIMISED_SRC
:= $(SIZE_OPTIMISED_SRC
) \
555 drivers
/accgyro
/accgyro_mpu6050.c \
556 drivers
/accgyro
/accgyro_mpu6500.c \
557 drivers
/accgyro
/accgyro_spi_mpu6000.c \
558 drivers
/accgyro
/accgyro_spi_mpu6500.c \
559 drivers
/accgyro
/accgyro_spi_mpu9250.c \
560 drivers
/accgyro
/accgyro_spi_icm20689.c \
561 drivers
/accgyro
/accgyro_spi_icm426xx.c \
562 drivers
/accgyro
/accgyro_spi_lsm6dso_init.c
565 # F4 and F7 optimizations
566 SPEED_OPTIMISED_SRC
:= $(SPEED_OPTIMISED_SRC
) \
567 drivers
/bus_i2c_hal.c \
568 drivers
/bus_spi_ll.c \
571 drivers
/pwm_output_dshot.c \
572 drivers
/pwm_output_dshot_shared.c \
573 drivers
/pwm_output_dshot_hal.c
575 SIZE_OPTIMISED_SRC
:= $(SIZE_OPTIMISED_SRC
) \
576 drivers
/bus_i2c_hal_init.c
578 # check if target.mk supplied
579 SRC
:= $(STARTUP_SRC
) $(MCU_COMMON_SRC
) $(TARGET_SRC
) $(VARIANT_SRC
)
581 # Files that should not be optimized, useful for debugging IMPRECISE cpu faults.
582 # Specify FULL PATH, e.g. "./lib/main/STM32F7/Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_ll_sdmmc.c"
583 NOT_OPTIMISED_SRC
:= $(NOT_OPTIMISED_SRC
) \
587 INCLUDE_DIRS
+= $(DSP_LIB
)/Include
588 SRC
+= $(wildcard $(DSP_LIB
)/Source
/*/*.S
)
592 SRC
+= $(FLASH_SRC
) $(MSC_SRC
) $(SDCARD_SRC
) $(COMMON_SRC
)
595 SRC
:= $(filter-out $(MCU_EXCLUDES
), $(SRC
))
599 # end target specific make file checks
601 # Search path and source files for the Open Location Code library
602 OLC_DIR
= $(ROOT
)/lib
/main
/google
/olc
605 INCLUDE_DIRS
+= $(OLC_DIR
)
606 SRC
+= $(OLC_DIR
)/olc.c
607 SIZE_OPTIMISED_SRC
+= $(OLC_DIR
)/olc.c