12 pg
/displayport_profiles.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_impl.c \
113 drivers
/serial_pinconfig.c \
114 drivers
/serial_uart.c \
115 drivers
/serial_uart_pinconfig.c \
116 drivers
/serial_uart_hw.c \
117 drivers
/sound_beeper.c \
118 drivers
/stack_check.c \
120 drivers
/timer_common.c \
121 drivers
/transponder_ir_arcitimer.c \
122 drivers
/transponder_ir_ilap.c \
123 drivers
/transponder_ir_erlt.c \
128 fc/runtime_config.c \
133 io
/serial_resource.c \
134 io
/smartaudio_protocol.c \
135 io
/statusindicator.c \
136 io
/tramp_protocol.c \
137 io
/transponder_ir.c \
142 msp
/msp_build_info.c \
144 scheduler
/scheduler.c \
145 sensors
/adcinternal.c \
149 target
/config_helper.c \
151 fc/controlrate_profile.c \
152 drivers
/accgyro
/gyro_sync.c \
153 drivers
/rx
/rx_spi.c \
154 drivers
/rx
/rx_xn297.c \
155 drivers
/rx
/rx_pwm.c \
156 drivers
/serial_softserial.c \
160 fc/rc_adjustments.c \
165 flight
/dyn_notch_filter.c \
167 flight
/gps_rescue.c \
170 flight
/mixer_init.c \
171 flight
/mixer_tricopter.c \
175 flight
/rpm_filter.c \
177 flight
/servos_tricopter.c \
179 io
/serial_4way_avrootloader.c \
180 io
/serial_4way_stk500v2.c \
197 io
/spektrum_vtx_control.c \
204 sensors
/acceleration.c \
205 sensors
/acceleration_init.c \
206 sensors
/boardalignment.c \
209 sensors
/gyro_init.c \
210 sensors
/initialisation.c \
211 blackbox
/blackbox.c \
212 blackbox
/blackbox_encoding.c \
213 blackbox
/blackbox_io.c \
215 cms
/cms_menu_blackbox.c \
216 cms
/cms_menu_failsafe.c \
217 cms
/cms_menu_firmware.c \
218 cms
/cms_menu_gps_rescue.c \
219 cms
/cms_menu_gps_lap_timer.c \
221 cms
/cms_menu_ledstrip.c \
222 cms
/cms_menu_main.c \
223 cms
/cms_menu_misc.c \
225 cms
/cms_menu_power.c \
226 cms
/cms_menu_saveexit.c \
227 cms
/cms_menu_vtx_common.c \
228 cms
/cms_menu_vtx_rtc6705.c \
229 cms
/cms_menu_vtx_smartaudio.c \
230 cms
/cms_menu_vtx_tramp.c \
231 cms
/cms_menu_persistent_stats.c \
232 cms
/cms_menu_rpm_limit.c \
233 cms
/cms_menu_quick.c \
234 drivers
/display_ug2864hsweg01.c \
235 drivers
/light_ws2811strip.c \
236 drivers
/rangefinder
/rangefinder_hcsr04.c \
237 drivers
/rangefinder
/rangefinder_lidartf.c \
238 drivers
/rangefinder
/rangefinder_lidarmt.c \
239 drivers
/serial_escserial.c \
240 drivers
/vtx_common.c \
241 drivers
/vtx_table.c \
243 io
/displayport_frsky_osd.c \
244 io
/displayport_max7456.c \
245 io
/displayport_msp.c \
246 io
/displayport_oled.c \
247 io
/displayport_srxl.c \
248 io
/displayport_crsf.c \
249 io
/displayport_hott.c \
259 sensors
/barometer.c \
260 sensors
/rangefinder.c \
261 telemetry
/telemetry.c \
265 telemetry
/frsky_hub.c \
267 telemetry
/jetiexbus.c \
268 telemetry
/smartport.c \
270 telemetry
/mavlink.c \
271 telemetry
/msp_shared.c \
273 telemetry
/ibus_shared.c \
274 sensors
/esc_sensor.c \
277 io
/vtx_smartaudio.c \
281 cms
/cms_menu_vtx_msp.c
283 ifneq ($(SIMULATOR_BUILD
),yes
)
286 drivers
/accgyro
/accgyro_mpu3050.c \
287 drivers
/accgyro
/accgyro_mpu6050.c \
288 drivers
/accgyro
/accgyro_mpu6500.c \
289 drivers
/accgyro
/accgyro_mpu.c \
290 drivers
/accgyro
/accgyro_spi_bmi160.c \
291 drivers
/accgyro
/accgyro_spi_bmi270.c \
292 drivers
/accgyro
/accgyro_spi_icm20649.c \
293 drivers
/accgyro
/accgyro_spi_icm20689.c \
294 drivers
/accgyro
/accgyro_spi_icm426xx.c \
295 drivers
/accgyro
/accgyro_spi_l3gd20.c \
296 drivers
/accgyro
/accgyro_spi_lsm6dso.c \
297 drivers
/accgyro
/accgyro_spi_lsm6dso_init.c \
298 drivers
/accgyro
/accgyro_spi_lsm6dsv16x.c \
299 drivers
/accgyro
/accgyro_spi_mpu6000.c \
300 drivers
/accgyro
/accgyro_spi_mpu6500.c \
301 drivers
/accgyro
/accgyro_spi_mpu9250.c \
302 drivers
/accgyro
/accgyro_virtual.c \
303 drivers
/accgyro
/gyro_sync.c \
304 $(ROOT
)/lib
/main
/BoschSensortec
/BMI270-Sensor-API
/bmi270_maximum_fifo.c \
305 drivers
/barometer
/barometer_2smpb_02b.c \
306 drivers
/barometer
/barometer_bmp085.c \
307 drivers
/barometer
/barometer_bmp280.c \
308 drivers
/barometer
/barometer_bmp388.c \
309 drivers
/barometer
/barometer_dps310.c \
310 drivers
/barometer
/barometer_lps22df.c \
311 drivers
/barometer
/barometer_lps.c \
312 drivers
/barometer
/barometer_ms5611.c \
313 drivers
/barometer
/barometer_qmp6988.c \
314 drivers
/barometer
/barometer_virtual.c \
315 drivers
/compass
/compass_ak8963.c \
316 drivers
/compass
/compass_ak8975.c \
317 drivers
/compass
/compass_hmc5883l.c \
318 drivers
/compass
/compass_ist8310.c \
319 drivers
/compass
/compass_lis2mdl.c \
320 drivers
/compass
/compass_lis3mdl.c \
321 drivers
/compass
/compass_mpu925x_ak8963.c \
322 drivers
/compass
/compass_qmc5883l.c \
323 drivers
/compass
/compass_virtual.c \
325 drivers
/vtx_rtc6705.c \
326 drivers
/vtx_rtc6705_soft_spi.c
328 ifneq ($(GYRO_DEFINE
),)
330 LEGACY_GYRO_DEFINES
:= USE_GYRO_L3GD20
331 ifneq ($(findstring $(GYRO_DEFINE
),$(LEGACY_GYRO_DEFINES
)),)
334 drivers
/accgyro
/legacy
/accgyro_adxl345.c \
335 drivers
/accgyro
/legacy
/accgyro_bma280.c \
336 drivers
/accgyro
/legacy
/accgyro_l3g4200d.c \
337 drivers
/accgyro
/legacy
/accgyro_lsm303dlhc.c \
338 drivers
/accgyro
/legacy
/accgyro_mma845x.c
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
)
389 COMMON_DEVICE_SRC
= \
391 $(DEVICE_STDPERIPH_SRC
)
393 COMMON_SRC
:= $(COMMON_SRC
) $(COMMON_DEVICE_SRC
) $(RX_SRC
)
396 TARGET_FLAGS
:= -DUSE_EXST
$(TARGET_FLAGS
)
399 ifeq ($(RAM_BASED
),yes
)
400 TARGET_FLAGS
:= -DUSE_EXST
-DCONFIG_IN_RAM
-DRAMBASED
$(TARGET_FLAGS
)
403 ifeq ($(SIMULATOR_BUILD
),yes
)
404 TARGET_FLAGS
:= -DSIMULATOR_BUILD
$(TARGET_FLAGS
)
407 SPEED_OPTIMISED_SRC
:= ""
408 SIZE_OPTIMISED_SRC
:= ""
410 SPEED_OPTIMISED_SRC
:= $(SPEED_OPTIMISED_SRC
) \
417 common
/typeconversion.c \
419 drivers
/accgyro
/accgyro_mpu.c \
420 drivers
/accgyro
/accgyro_mpu3050.c \
421 drivers
/accgyro
/accgyro_spi_bmi160.c \
422 drivers
/accgyro
/accgyro_spi_bmi270.c \
423 drivers
/accgyro
/accgyro_spi_lsm6dso.c \
424 drivers
/accgyro_legacy
/accgyro_adxl345.c \
425 drivers
/accgyro_legacy
/accgyro_bma280.c \
426 drivers
/accgyro_legacy
/accgyro_l3g4200d.c \
427 drivers
/accgyro_legacy
/accgyro_l3gd20.c \
428 drivers
/accgyro_legacy
/accgyro_lsm303dlhc.c \
429 drivers
/accgyro_legacy
/accgyro_mma845x.c \
431 drivers
/buf_writer.c \
433 drivers
/bus_quadspi.c \
437 drivers
/pwm_output.c \
440 drivers
/serial_uart.c \
447 fc/runtime_config.c \
448 flight
/dyn_notch_filter.c \
452 flight
/rpm_filter.c \
466 scheduler
/scheduler.c \
467 sensors
/acceleration.c \
468 sensors
/boardalignment.c \
471 $(DEVICE_STDPERIPH_SRC
) \
473 SIZE_OPTIMISED_SRC
:= $(SIZE_OPTIMISED_SRC
) \
474 $(shell find
$(SRC_DIR
) -name
'*_init.c') \
475 bus_bst_stm32f30x.c \
478 drivers
/accgyro
/accgyro_fake.c \
479 drivers
/barometer
/barometer_bmp085.c \
480 drivers
/barometer
/barometer_bmp280.c \
481 drivers
/barometer
/barometer_fake.c \
482 drivers
/barometer
/barometer_ms5611.c \
483 drivers
/barometer
/barometer_lps.c \
484 drivers
/barometer
/barometer_qmp6988.c \
485 drivers
/barometer
/barometer_2smpb_02b.c \
486 drivers
/bus_i2c_config.c \
487 drivers
/bus_i2c_timing.c \
488 drivers
/bus_spi_config.c \
489 drivers
/bus_spi_pinconfig.c \
490 drivers
/compass
/compass_ak8963.c \
491 drivers
/compass
/compass_ak8975.c \
492 drivers
/compass
/compass_fake.c \
493 drivers
/compass
/compass_hmc5883l.c \
494 drivers
/compass
/compass_qmc5883l.c \
495 drivers
/compass
/compass_lis2mdl.c \
496 drivers
/compass
/compass_lis3mdl.c \
497 drivers
/compass
/compass_ist8310.c \
498 drivers
/display_ug2864hsweg01.c \
500 drivers
/light_ws2811strip.c \
501 drivers
/serial_escserial.c \
502 drivers
/serial_pinconfig.c \
503 drivers
/serial_tcp.c \
504 drivers
/serial_uart_pinconfig.c \
505 drivers
/serial_usb_vcp.c \
506 drivers
/vtx_rtc6705_soft_spi.c \
507 drivers
/vtx_rtc6705.c \
508 drivers
/vtx_common.c \
511 config
/config_eeprom.c \
513 config
/config_streamer.c \
514 config
/simplified_tuning.c \
519 io
/serial_4way_avrootloader.c \
520 io
/serial_4way_stk500v2.c \
521 io
/transponder_ir.c \
525 cms
/cms_menu_blackbox.c \
526 cms
/cms_menu_failsafe.c \
527 cms
/cms_menu_firmware.c \
528 cms
/cms_menu_gps_rescue.c \
529 cms
/cms_menu_gps_lap_timer.c \
531 cms
/cms_menu_ledstrip.c \
532 cms
/cms_menu_main.c \
533 cms
/cms_menu_misc.c \
535 cms
/cms_menu_power.c \
536 cms
/cms_menu_saveexit.c \
537 cms
/cms_menu_vtx_common.c \
538 cms
/cms_menu_vtx_rtc6705.c \
539 cms
/cms_menu_vtx_smartaudio.c \
540 cms
/cms_menu_vtx_tramp.c \
541 cms
/cms_menu_persistent_stats.c \
542 cms
/cms_menu_rpm_limit.c \
543 cms
/cms_menu_quick.c \
546 io
/vtx_smartaudio.c \
549 io
/spektrum_vtx_control.c \
555 cms
/cms_menu_vtx_msp.c
557 # Gyro driver files that only contain initialization and configuration code - not runtime code
558 SIZE_OPTIMISED_SRC
:= $(SIZE_OPTIMISED_SRC
) \
559 drivers
/accgyro
/accgyro_mpu6050.c \
560 drivers
/accgyro
/accgyro_mpu6500.c \
561 drivers
/accgyro
/accgyro_spi_mpu6000.c \
562 drivers
/accgyro
/accgyro_spi_mpu6500.c \
563 drivers
/accgyro
/accgyro_spi_mpu9250.c \
564 drivers
/accgyro
/accgyro_spi_icm20689.c \
565 drivers
/accgyro
/accgyro_spi_icm426xx.c \
566 drivers
/accgyro
/accgyro_spi_lsm6dso_init.c
569 # F4 and F7 optimizations
570 SPEED_OPTIMISED_SRC
:= $(SPEED_OPTIMISED_SRC
) \
571 drivers
/bus_i2c_hal.c \
572 drivers
/bus_spi_ll.c \
575 drivers
/pwm_output_dshot.c \
576 drivers
/pwm_output_dshot_shared.c \
577 drivers
/pwm_output_dshot_hal.c
579 SIZE_OPTIMISED_SRC
:= $(SIZE_OPTIMISED_SRC
) \
580 drivers
/bus_i2c_hal_init.c
582 # check if target.mk supplied
583 SRC
:= $(STARTUP_SRC
) $(MCU_COMMON_SRC
) $(TARGET_SRC
) $(VARIANT_SRC
)
585 # Files that should not be optimized, useful for debugging IMPRECISE cpu faults.
586 # Specify FULL PATH, e.g. "./lib/main/STM32F7/Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_ll_sdmmc.c"
587 NOT_OPTIMISED_SRC
:= $(NOT_OPTIMISED_SRC
) \
591 INCLUDE_DIRS
+= $(DSP_LIB
)/Include
592 SRC
+= $(wildcard $(DSP_LIB
)/Source
/*/*.S
)
596 SRC
+= $(FLASH_SRC
) $(MSC_SRC
) $(SDCARD_SRC
) $(COMMON_SRC
)
599 SRC
:= $(filter-out $(MCU_EXCLUDES
), $(SRC
))
603 # end target specific make file checks
605 # Search path and source files for the Open Location Code library
606 OLC_DIR
= $(ROOT
)/lib
/main
/google
/olc
609 INCLUDE_DIRS
+= $(OLC_DIR
)
610 SRC
+= $(OLC_DIR
)/olc.c
611 SIZE_OPTIMISED_SRC
+= $(OLC_DIR
)/olc.c