Set blackbox file handler to NULL after closing file
[inav.git] / src / main / CMakeLists.txt
blob0f4049f51c5e7400eee41daa6437c82ac902c614
2 main_sources(COMMON_SRC
3     main.c
5     target/common_hardware.c
7     build/assert.c
8     build/assert.h
9     build/build_config.c
10     build/build_config.h
11     build/debug.c
12     build/debug.h
13     build/version.c
14     build/version.h
16     common/bitarray.c
17     common/bitarray.h
18     common/calibration.c
19     common/calibration.h
20     common/colorconversion.c
21     common/colorconversion.h
22     common/crc.c
23     common/crc.h
24     common/encoding.c
25     common/encoding.h
26     common/filter.c
27     common/filter.h
28     common/fp_pid.c
29     common/fp_pid.h
30     common/gps_conversion.c
31     common/gps_conversion.h
32     common/log.c
33     common/log.h
34     common/lulu.c
35     common/lulu.h
36     common/maths.c
37     common/maths.h
38     common/memory.c
39     common/memory.h
40     common/olc.c
41     common/olc.h
42     common/printf.c
43     common/printf.h
44     common/streambuf.c
45     common/streambuf.h
46     common/string_light.c
47     common/string_light.h
48     common/time.c
49     common/time.h
50     common/typeconversion.c
51     common/typeconversion.h
52     common/uvarint.c
53     common/uvarint.h
54     common/circular_queue.c
55     common/circular_queue.h
57     config/config_eeprom.c
58     config/config_eeprom.h
59     config/config_streamer.c
60     config/config_streamer.h
61     config/feature.c
62     config/feature.h
63     config/parameter_group.c
64     config/parameter_group.h
65     config/general_settings.c
66     config/general_settings.h
68     drivers/1-wire.c
69     drivers/1-wire.h
70     drivers/1-wire/ds_crc.c
71     drivers/1-wire/ds_crc.h
72     drivers/1-wire/ds2482.c
73     drivers/1-wire/ds2482.h
75     drivers/accgyro/accgyro.c
76     drivers/accgyro/accgyro.h
77     drivers/accgyro/accgyro_bmi088.c
78     drivers/accgyro/accgyro_bmi088.h
79     drivers/accgyro/accgyro_bmi160.c
80     drivers/accgyro/accgyro_bmi160.h
81     drivers/accgyro/accgyro_bmi270.c
82     drivers/accgyro/accgyro_bmi270.h
83     drivers/accgyro/accgyro_bmi270_maximum_fifo.c
84     drivers/accgyro/accgyro_fake.c
85     drivers/accgyro/accgyro_fake.h
86     drivers/accgyro/accgyro_icm20689.c
87     drivers/accgyro/accgyro_icm20689.h
88     drivers/accgyro/accgyro_icm42605.c
89     drivers/accgyro/accgyro_icm42605.h
90     drivers/accgyro/accgyro_mpu.c
91     drivers/accgyro/accgyro_mpu.h
92     drivers/accgyro/accgyro_mpu6000.c
93     drivers/accgyro/accgyro_mpu6000.h
94     drivers/accgyro/accgyro_mpu6500.c
95     drivers/accgyro/accgyro_mpu6500.h
96     drivers/accgyro/accgyro_mpu9250.c
97     drivers/accgyro/accgyro_mpu9250.h
98     drivers/accgyro/accgyro_lsm6dxx.c
99     drivers/accgyro/accgyro_lsm6dxx.h
101     drivers/adc.c
102     drivers/adc.h
104     drivers/barometer/barometer.h
105     drivers/barometer/barometer_bmp085.c
106     drivers/barometer/barometer_bmp085.h
107     drivers/barometer/barometer_bmp280.c
108     drivers/barometer/barometer_bmp280.h
109     drivers/barometer/barometer_bmp388.c
110     drivers/barometer/barometer_bmp388.h
111     drivers/barometer/barometer_dps310.c
112     drivers/barometer/barometer_dps310.h
113     drivers/barometer/barometer_fake.c
114     drivers/barometer/barometer_fake.h
115     drivers/barometer/barometer_lps25h.c
116     drivers/barometer/barometer_lps25h.h
117     drivers/barometer/barometer_ms56xx.c
118     drivers/barometer/barometer_ms56xx.h
119     drivers/barometer/barometer_spl06.c
120     drivers/barometer/barometer_spl06.h
121     drivers/barometer/barometer_msp.c
122     drivers/barometer/barometer_msp.h
123     drivers/barometer/barometer_2smpb_02b.c
124     drivers/barometer/barometer_2smpb_02b.h
126     drivers/buf_writer.c
127     drivers/buf_writer.h
128     drivers/bus.c
129     drivers/bus.h
130     drivers/bus_busdev_i2c.c
131     drivers/bus_busdev_spi.c
132     drivers/bus_i2c_soft.c
134     drivers/compass/compass.h
135     drivers/compass/compass_ak8963.c
136     drivers/compass/compass_ak8963.h
137     drivers/compass/compass_ak8975.c
138     drivers/compass/compass_ak8975.h
139     drivers/compass/compass_fake.c
140     drivers/compass/compass_fake.h
141     drivers/compass/compass_hmc5883l.c
142     drivers/compass/compass_hmc5883l.h
143     drivers/compass/compass_ist8308.c
144     drivers/compass/compass_ist8308.h
145     drivers/compass/compass_ist8310.c
146     drivers/compass/compass_ist8310.h
147     drivers/compass/compass_lis3mdl.c
148     drivers/compass/compass_lis3mdl.h
149     drivers/compass/compass_mag3110.c
150     drivers/compass/compass_mag3110.h
151     drivers/compass/compass_mpu9250.c
152     drivers/compass/compass_mpu9250.h
153     drivers/compass/compass_qmc5883l.c
154     drivers/compass/compass_qmc5883l.h
155     drivers/compass/compass_rm3100.c
156     drivers/compass/compass_rm3100.h
157     drivers/compass/compass_vcm5883.c
158     drivers/compass/compass_vcm5883.h
159     drivers/compass/compass_mlx90393.c
160     drivers/compass/compass_mlx90393.h
161     drivers/compass/compass_msp.c
162     drivers/compass/compass_msp.h
164     drivers/display.c
165     drivers/display.h
166     drivers/display_canvas.c
167     drivers/display_canvas.h
168     drivers/display_font_metadata.c
169     drivers/display_font_metadata.h
170     drivers/display_widgets.c
171     drivers/display_widgets.h
172     drivers/display_ug2864hsweg01.c
173     drivers/display_ug2864hsweg01.h
174     drivers/exti.c
175     drivers/exti.h
176     drivers/flash.c
177     drivers/flash.h
178     drivers/flash_m25p16.c
179     drivers/flash_m25p16.h
180     drivers/flash_w25n01g.c
181     drivers/flash_w25n01g.h
182     drivers/gimbal_common.h
183     drivers/gimbal_common.c
184     drivers/headtracker_common.h
185     drivers/headtracker_common.c
186     drivers/io.c
187     drivers/io.h
188     drivers/io_pcf8574.c
189     drivers/io_pcf8574.h
190     drivers/io_port_expander.c
191     drivers/io_port_expander.h
192     drivers/irlock.c
193     drivers/irlock.h
194     drivers/light_led.c
195     drivers/light_led.h
196     drivers/light_ws2811strip.c
197     drivers/light_ws2811strip.h
198     drivers/lights_io.c
199     drivers/lights_io.h
200     drivers/max7456.c
201     drivers/max7456.h
202     drivers/serial_softserial.c
203     drivers/serial_softserial.h
205     drivers/opflow/opflow_fake.c
206     drivers/opflow/opflow_fake.h
207     drivers/opflow/opflow_virtual.c
208     drivers/opflow/opflow_virtual.h
210     drivers/osd.c
211     drivers/osd.h
212     drivers/persistent.c
213     drivers/persistent.h
214     drivers/pitotmeter/pitotmeter_adc.c
215     drivers/pitotmeter/pitotmeter_adc.h
216     drivers/pitotmeter/pitotmeter_ms4525.c
217     drivers/pitotmeter/pitotmeter_ms4525.h
218     drivers/pitotmeter/pitotmeter_dlvr_l10d.c
219     drivers/pitotmeter/pitotmeter_dlvr_l10d.h   
220     drivers/pitotmeter/pitotmeter_msp.c
221     drivers/pitotmeter/pitotmeter_msp.h
222     drivers/pitotmeter/pitotmeter_virtual.c
223     drivers/pitotmeter/pitotmeter_virtual.h
224     drivers/pitotmeter/pitotmeter_fake.h
225     drivers/pitotmeter/pitotmeter_fake.c
226     drivers/pwm_esc_detect.c
227     drivers/pwm_esc_detect.h
228     drivers/pwm_mapping.c
229     drivers/pwm_mapping.h
230     drivers/pwm_output.c
231     drivers/pwm_output.h
232     drivers/pinio.c
233     drivers/pinio.h
235     drivers/rangefinder/rangefinder_srf10.c
236     drivers/rangefinder/rangefinder_srf10.h
237     drivers/rangefinder/rangefinder_vl53l0x.c
238     drivers/rangefinder/rangefinder_vl53l0x.h
239     drivers/rangefinder/rangefinder_vl53l1x.c
240     drivers/rangefinder/rangefinder_vl53l1x.h
241     drivers/rangefinder/rangefinder_virtual.c
242     drivers/rangefinder/rangefinder_virtual.h
243     drivers/rangefinder/rangefinder_us42.c
244     drivers/rangefinder/rangefinder_us42.h
245     drivers/rangefinder/rangefinder_tof10120_i2c.c
246     drivers/rangefinder/rangefinder_tof10120_i2c.h
247     drivers/rangefinder/rangefinder_teraranger_evo.c
248     drivers/rangefinder/rangefinder_teraranger_evo.h
250     drivers/resource.c
251     drivers/resource.h
252     drivers/rcc.c
253     drivers/rcc.h
254     drivers/serial.c
255     drivers/serial.h
256     drivers/sound_beeper.c
257     drivers/sound_beeper.h
258     drivers/stack_check.c
259     drivers/stack_check.h
260     drivers/system.c
261     drivers/system.h
263     drivers/temperature/ds18b20.c
264     drivers/temperature/ds18b20.h
265     drivers/temperature/lm75.c
266     drivers/temperature/lm75.h
268     drivers/time.c
269     drivers/time.h
270     drivers/timer.c
271     drivers/timer.h
272     drivers/usb_msc.c
273     drivers/usb_msc.h
274     drivers/vtx_common.c
275     drivers/vtx_common.h
277     fc/cli.c
278     fc/cli.h
279     fc/config.c
280     fc/config.h
281     fc/controlrate_profile.c
282     fc/controlrate_profile.h
283     fc/controlrate_profile_config_struct.h
284     fc/fc_core.c
285     fc/fc_core.h
286     fc/fc_init.c
287     fc/fc_init.h
288     fc/fc_tasks.c
289     fc/fc_tasks.h
290     fc/fc_hardfaults.c
291     fc/fc_msp.c
292     fc/fc_msp.h
293     fc/fc_msp_box.c
294     fc/fc_msp_box.h
295     fc/firmware_update.c
296     fc/firmware_update.h
297     fc/firmware_update_common.c
298     fc/firmware_update_common.h
299     fc/multifunction.c
300     fc/multifunction.h
301     fc/rc_smoothing.c
302     fc/rc_smoothing.h
303     fc/rc_adjustments.c
304     fc/rc_adjustments.h
305     fc/rc_controls.c
306     fc/rc_controls.h
307     fc/rc_curves.c
308     fc/rc_curves.h
309     fc/rc_modes.c
310     fc/rc_modes.h
311     fc/runtime_config.c
312     fc/runtime_config.h
313     fc/settings.c
314     fc/settings.h
315     fc/stats.c
316     fc/stats.h
318     flight/failsafe.c
319     flight/failsafe.h
320     flight/imu.c
321     flight/imu.h
322     flight/kalman.c
323     flight/kalman.h
324     flight/smith_predictor.c
325     flight/smith_predictor.h
326     flight/rate_dynamics.c
327     flight/rate_dynamics.h
328     flight/mixer.c
329     flight/mixer.h
330     flight/pid.c
331     flight/pid.h
332     flight/pid_autotune.c
333     flight/power_limits.c
334     flight/power_limits.h
335     flight/rth_estimator.c
336     flight/rth_estimator.h
337     flight/servos.c
338     flight/servos.h
339     flight/mixer_profile.c
340     flight/mixer_profile.h
341     flight/wind_estimator.c
342     flight/wind_estimator.h
343     flight/gyroanalyse.c
344     flight/gyroanalyse.h
345     flight/rpm_filter.c
346     flight/rpm_filter.h
347     flight/dynamic_gyro_notch.c
348     flight/dynamic_gyro_notch.h
349     flight/secondary_dynamic_gyro_notch.c
350     flight/secondary_dynamic_gyro_notch.h
351     flight/dynamic_lpf.c
352     flight/dynamic_lpf.h
353     flight/ez_tune.c
354     flight/ez_tune.h
355     flight/adaptive_filter.c
356     flight/adaptive_filter.h
358     io/adsb.c
359     io/beeper.c
360     io/beeper.h
361     io/servo_sbus.c
362     io/servo_sbus.h
363     io/frsky_osd.c
364     io/frsky_osd.h
365     io/gimbal_serial.c
366     io/gimbal_serial.h
367     io/headtracker_msp.c
368     io/headtracker_msp.h
369     io/osd_dji_hd.c
370     io/osd_dji_hd.h
371     io/lights.c
372     io/lights.h
373     io/piniobox.c
374     io/piniobox.h
375     io/serial.c
376     io/serial.h
377     io/serial_4way.c
378     io/serial_4way.h
379     io/serial_4way_avrootloader.c
380     io/serial_4way_avrootloader.h
381     io/serial_4way_stk500v2.c
382     io/serial_4way_stk500v2.h
383     io/statusindicator.c
384     io/statusindicator.h
385     io/rcdevice.c
386     io/rcdevice.h
387     io/rcdevice_cam.c
388     io/rcdevice_cam.h
390     io/osd/custom_elements.c
392     msp/msp_serial.c
393     msp/msp_serial.h
395     programming/logic_condition.c
396     programming/logic_condition.h
397     programming/global_variables.c
398     programming/global_variables.h
399     programming/programming_task.c
400     programming/programming_task.h
401     programming/pid.c
402     programming/pid.h
404     rx/crsf.c
405     rx/crsf.h
406     rx/fport.c
407     rx/fport.h
408     rx/fport2.c
409     rx/fport2.h
410     rx/ghst_protocol.h
411     rx/ghst.c
412     rx/ghst.h
413     rx/ibus.c
414     rx/ibus.h
415     rx/jetiexbus.c
416     rx/jetiexbus.h
417     rx/mavlink.c
418     rx/mavlink.h
419     rx/msp.c
420     rx/msp.h
421     rx/msp_override.c
422     rx/msp_override.h
423     rx/frsky_crc.c
424     rx/frsky_crc.h
425     rx/rx.c
426     rx/rx.h
427     rx/sbus.c
428     rx/sbus.h
429     rx/sbus_channels.c
430     rx/sbus_channels.h
431     rx/spektrum.c
432     rx/spektrum.h
433     rx/srxl2.c
434     rx/srxl2.h
435     rx/sumd.c
436     rx/sumd.h
437     rx/sim.c
438     rx/sim.h
441     scheduler/scheduler.c
442     scheduler/scheduler.h
444     sensors/acceleration.c
445     sensors/acceleration.h
446     sensors/battery.c
447     sensors/battery.h
448     sensors/battery_config_structs.h
449     sensors/boardalignment.c
450     sensors/boardalignment.h
451     sensors/compass.c
452     sensors/compass.h
453     sensors/diagnostics.c
454     sensors/diagnostics.h
455     sensors/gyro.c
456     sensors/gyro.h
457     sensors/initialisation.c
458     sensors/initialisation.h
459     sensors/esc_sensor.c
460     sensors/esc_sensor.h
461     sensors/irlock.c
462     sensors/irlock.h
463     sensors/temperature.c
464     sensors/temperature.h
466     blackbox/blackbox.c
467     blackbox/blackbox.h
468     blackbox/blackbox_encoding.c
469     blackbox/blackbox_encoding.h
470     blackbox/blackbox_io.c
471     blackbox/blackbox_io.h
473     cms/cms.c
474     cms/cms.h
475     cms/cms_menu_battery.c
476     cms/cms_menu_battery.h
477     cms/cms_menu_blackbox.c
478     cms/cms_menu_blackbox.h
479     cms/cms_menu_builtin.c
480     cms/cms_menu_builtin.h
481     cms/cms_menu_imu.c
482     cms/cms_menu_imu.h
483     cms/cms_menu_ledstrip.c
484     cms/cms_menu_ledstrip.h
485     cms/cms_menu_misc.c
486     cms/cms_menu_misc.h
487     cms/cms_menu_mixer_servo.c
488     cms/cms_menu_mixer_servo.h
489     cms/cms_menu_navigation.c
490     cms/cms_menu_navigation.h
491     cms/cms_menu_osd.c
492     cms/cms_menu_osd.h
493     cms/cms_menu_saveexit.c
494     cms/cms_menu_saveexit.h
495     cms/cms_menu_vtx.c
496     cms/cms_menu_vtx.h
498     io/rangefinder.h
499     io/rangefinder_msp.c
500     io/rangefinder_benewake.c
501     io/rangefinder_usd1_v0.c
502     io/rangefinder_nanoradar.c
503     io/rangefinder_fake.c
504     io/opflow.h
505     io/opflow_cxof.c
506     io/opflow_msp.c
507     io/dashboard.c
508     io/dashboard.h
509     io/displayport_frsky_osd.c
510     io/displayport_frsky_osd.h
511     io/displayport_max7456.c
512     io/displayport_max7456.h
513     io/displayport_msp.c
514     io/displayport_msp.h
515     io/displayport_msp_dji_compat.c
516     io/displayport_msp_dji_compat.h
517     io/displayport_oled.c
518     io/displayport_oled.h
519     io/displayport_msp_osd.c
520     io/displayport_msp_osd.h
521     io/displayport_srxl.c
522     io/displayport_srxl.h
523     io/displayport_hott.c
524     io/displayport_hott.h
525     io/flashfs.c
526     io/flashfs.h
527     io/gps.c
528     io/gps.h
529     io/gps_ublox.c
530     io/gps_ublox_utils.c
531     io/gps_msp.c
532     io/gps_fake.c
533     io/gps_private.h
534     io/ledstrip.c
535     io/ledstrip.h
536     io/osd.c
537     io/osd.h
538     io/osd_utils.c
539     io/osd_utils.h
540     io/osd_canvas.c
541     io/osd_canvas.h
542     io/osd_common.c
543     io/osd_common.h
544     io/osd_grid.c
545     io/osd_grid.h
546     io/osd_hud.c
547     io/osd_hud.h
548     io/osd_joystick.c
549     io/osd_joystick.h
550     io/smartport_master.c
551     io/smartport_master.h
552     io/vtx.c
553     io/vtx.h
554     io/vtx_string.c
555     io/vtx_string.h
556     io/vtx_smartaudio.c
557     io/vtx_smartaudio.h
558     io/vtx_tramp.c
559     io/vtx_tramp.h
560     io/vtx_ffpv24g.c
561     io/vtx_ffpv24g.h
562     io/vtx_control.c
563     io/vtx_control.h
564     io/vtx_msp.c
565     io/vtx_msp.h
567     navigation/navigation.c
568     navigation/navigation.h
569     navigation/navigation_fixedwing.c
570     navigation/navigation_fw_launch.c
571     navigation/navigation_geo.c
572     navigation/navigation_multicopter.c
573     navigation/navigation_pos_estimator.c
574     navigation/navigation_pos_estimator_private.h
575     navigation/navigation_pos_estimator_agl.c
576     navigation/navigation_pos_estimator_flow.c
577     navigation/navigation_private.h
578     navigation/navigation_rover_boat.c
579     navigation/sqrt_controller.c
580     navigation/sqrt_controller.h
581     navigation/rth_trackback.c
582     navigation/rth_trackback.h
584     sensors/barometer.c
585     sensors/barometer.h
586     sensors/pitotmeter.c
587     sensors/pitotmeter.h
588     sensors/rangefinder.c
589     sensors/rangefinder.h
590     sensors/opflow.c
591     sensors/opflow.h
592     sensors/battery_sensor_fake.c
593     sensors/battery_sensor_fake.h
595     telemetry/crsf.c
596     telemetry/crsf.h
597     telemetry/srxl.c
598     telemetry/srxl.h
599     telemetry/ghst.c
600     telemetry/ghst.h
601     telemetry/hott.c
602     telemetry/hott.h
603     telemetry/jetiexbus.c
604     telemetry/jetiexbus.h
605     telemetry/ibus_shared.c
606     telemetry/ibus_shared.h
607     telemetry/ibus.c
608     telemetry/ibus.h
609     telemetry/ltm.c
610     telemetry/ltm.h
611     telemetry/mavlink.c
612     telemetry/mavlink.h
613     telemetry/msp_shared.c
614     telemetry/msp_shared.h
615     telemetry/smartport.c
616     telemetry/smartport.h
617     telemetry/sim.c
618     telemetry/sim.h
619     telemetry/telemetry.c
620     telemetry/telemetry.h
623 add_subdirectory(target)