LP-500 HoTT Telemetry added device definitions
[librepilot.git] / flight / targets / boards / revolution / firmware / Makefile
blob6a51ba5a2b45f88faea9b6937c5c16d1d83b8140
2 # Copyright (C) 2015-2016, The LibrePilot Project, http://www.librepilot.org
3 # Copyright (C) 2009-2013, The OpenPilot Team, http://www.openpilot.org
4 # Copyright (C) 2012, PhoenixPilot, http://github.com/PhoenixPilot
6 # This program is free software; you can redistribute it and/or modify
7 # it under the terms of the GNU General Public License as published by
8 # the Free Software Foundation; either version 3 of the License, or
9 # (at your option) any later version.
11 # This program is distributed in the hope that it will be useful, but
12 # WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
13 # or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
14 # for more details.
16 # You should have received a copy of the GNU General Public License along
17 # with this program; if not, write to the Free Software Foundation, Inc.,
18 # 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19 #####
21 ifndef FLIGHT_MAKEFILE
22 $(error Top level Makefile must be used to build this target)
23 endif
25 include ../board-info.mk
26 include $(FLIGHT_ROOT_DIR)/make/firmware-defs.mk
28 # REVO C++ support
29 USE_CXX = YES
31 # ARM DSP library
32 USE_DSP_LIB ?= NO
34 # List of mandatory modules to include
35 MODULES += Sensors
36 MODULES += StateEstimation
37 MODULES += Airspeed
38 MODULES += Stabilization
39 MODULES += ManualControl
40 MODULES += Receiver
41 MODULES += Actuator
42 MODULES += GPS
43 MODULES += TxPID
44 MODULES += CameraStab
45 MODULES += CameraControl
46 MODULES += Battery
47 MODULES += FirmwareIAP
48 MODULES += Radio
49 MODULES += PathPlanner
50 MODULES += PathFollower
51 MODULES += Osd/osdoutout
52 MODULES += Logging
53 MODULES += Telemetry
54 MODULES += Notify
56 OPTMODULES += AutoTune
57 OPTMODULES += ComUsbBridge
58 OPTMODULES += UAVOHottBridge
59 OPTMODULES += UAVOMSPBridge
60 OPTMODULES += UAVOMavlinkBridge
62 SRC += $(FLIGHTLIB)/notification.c
64 # Include all camera options
65 CDEFS += -DUSE_INPUT_LPF -DUSE_GIMBAL_LPF -DUSE_GIMBAL_FF
67 # Some diagnostics
68 CDEFS += -DDIAG_TASKS
70 # Misc options
71 CFLAGS += -ffast-math
73 # List C source files here (C dependencies are automatically generated).
74 # Use file-extension c for "c-only"-files
75 ifndef TESTAPP
76 ## Application Core
77 SRC += ../pios_usb_board_data.c
78 SRC += $(OPMODULEDIR)/System/systemmod.c
79 CPPSRC += $(OPSYSTEM)/revolution.cpp
80 SRC += $(OPSYSTEM)/pios_board.c
81 SRC += $(FLIGHTLIB)/alarms.c
82 SRC += $(FLIGHTLIB)/instrumentation.c
83 SRC += $(OPUAVTALK)/uavtalk.c
84 SRC += $(OPUAVOBJ)/uavobjectmanager.c
85 SRC += $(OPUAVOBJ)/uavobjectpersistence.c
86 SRC += $(OPUAVOBJ)/eventdispatcher.c
87 SRC += $(PIOSCOMMON)/pios_flashfs_logfs.c
88 SRC += $(PIOSCOMMON)/pios_flash_jedec.c
90 #ifeq ($(DEBUG), YES)
91 SRC += $(OPSYSTEM)/dcc_stdio.c
92 SRC += $(OPSYSTEM)/cm3_fault_handlers.c
93 #endif
95 ## Misc library functions
96 SRC += $(FLIGHTLIB)/paths.c
97 SRC += $(FLIGHTLIB)/plans.c
98 SRC += $(FLIGHTLIB)/WorldMagModel.c
99 SRC += $(FLIGHTLIB)/insgps13state.c
100 SRC += $(FLIGHTLIB)/auxmagsupport.c
101 SRC += $(FLIGHTLIB)/lednotification.c
102 SRC += $(FLIGHTLIB)/sha1.c
104 ## UAVObjects
105 include ./UAVObjects.inc
106 SRC += $(UAVOBJSRC)
107 else
108 ## Test Code
109 SRC += $(OPTESTS)/test_common.c
110 SRC += $(OPTESTS)/$(TESTAPP).c
111 endif
113 # Optional component libraries
114 include $(FLIGHTLIB)/rscode/library.mk
116 #include $(FLIGHTLIB)/PyMite/pymite.mk
119 include $(FLIGHT_ROOT_DIR)/make/apps-defs.mk
120 include $(FLIGHT_ROOT_DIR)/make/common-defs.mk