Subversion Repositories FlightCtrl

Rev

Rev 1544 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1544 Rev 1545
Line 18... Line 18...
18
#EXT = KILLAGREG
18
#EXT = KILLAGREG
19
EXT = NAVICTRL
19
EXT = NAVICTRL
20
#EXT = MK3MAG
20
#EXT = MK3MAG
Line 21... Line 21...
21
 
21
 
-
 
22
# Use optional one the RCs if EXT = NAVICTRL has been used
-
 
23
#LPD: FC_JN_Receiver support added
22
# Use optional one the RCs if EXT = NAVICTRL has been used
24
RC = JENNIC
23
RC = DSL
25
#RC = DSL
Line 24... Line 26...
24
#RC = SPEKTRUM
26
#RC = SPEKTRUM
25
 
27
 
26
#-------------------------------------------------------------------
28
#-------------------------------------------------------------------
Line 116... Line 118...
116
# List C source files here. (C dependencies are automatically generated.)
118
# List C source files here. (C dependencies are automatically generated.)
117
SRC = main.c uart0.c printf_P.c timer0.c timer2.c analog.c menu.c led.c 
119
SRC = main.c uart0.c printf_P.c timer0.c timer2.c analog.c menu.c led.c 
118
SRC += twimaster.c rc.c fc.c eeprom.c uart1.c mymath.c
120
SRC += twimaster.c rc.c fc.c eeprom.c uart1.c mymath.c
Line 119... Line 121...
119
 
121
 
120
ifeq ($(EXT), KILLAGREG)
122
ifeq ($(EXT), KILLAGREG)
121
SRC += mm3.c gps.c ubx.c
123
	SRC += mm3.c gps.c ubx.c
122
endif
124
endif
123
ifeq ($(EXT), MK3MAG)
125
ifeq ($(EXT), MK3MAG)
124
SRC += mk3mag.c gps.c ubx.c
126
	SRC += mk3mag.c gps.c ubx.c
125
endif
127
endif
126
ifeq ($(EXT), NAVICTRL)
128
ifeq ($(EXT), NAVICTRL)
127
SRC += spi.c
129
	SRC += spi.c
128
ifeq ($(RC), DSL)
130
	ifeq ($(RC), DSL)
129
SRC += dsl.c
131
		SRC += dsl.c
130
endif
132
	endif
131
ifeq ($(RC), SPEKTRUM)
133
	ifeq ($(RC), SPEKTRUM)
-
 
134
		SRC += spectrum.c
-
 
135
	endif
-
 
136
	#LPD: FC_JN_Receiver support added
-
 
137
	ifeq ($(RC), JENNIC)
132
SRC += spectrum.c
138
		SRC += jennic.c
133
endif
139
	endif
134
endif
140
endif
Line 135... Line 141...
135
##########################################################################################################
141
##########################################################################################################
Line 174... Line 180...
174
CFLAGS += -std=gnu99
180
CFLAGS += -std=gnu99
Line 175... Line 181...
175
 
181
 
Line 176... Line 182...
176
CFLAGS += -DF_CPU=$(F_CPU) -DVERSION_MAJOR=$(VERSION_MAJOR) -DVERSION_MINOR=$(VERSION_MINOR) -DVERSION_PATCH=$(VERSION_PATCH) -DVERSION_SERIAL_MAJOR=$(VERSION_SERIAL_MAJOR) -DVERSION_SERIAL_MINOR=$(VERSION_SERIAL_MINOR) -DNC_SPI_COMPATIBLE=$(NC_SPI_COMPATIBLE)
182
CFLAGS += -DF_CPU=$(F_CPU) -DVERSION_MAJOR=$(VERSION_MAJOR) -DVERSION_MINOR=$(VERSION_MINOR) -DVERSION_PATCH=$(VERSION_PATCH) -DVERSION_SERIAL_MAJOR=$(VERSION_SERIAL_MAJOR) -DVERSION_SERIAL_MINOR=$(VERSION_SERIAL_MINOR) -DNC_SPI_COMPATIBLE=$(NC_SPI_COMPATIBLE)
177
 
183
 
178
ifeq ($(EXT), KILLAGREG)
184
ifeq ($(EXT), KILLAGREG)
179
 CFLAGS += -DUSE_KILLAGREG
185
	CFLAGS += -DUSE_KILLAGREG
180
endif
186
endif
181
ifeq ($(EXT), MK3MAG)
187
ifeq ($(EXT), MK3MAG)
182
 CFLAGS += -DUSE_MK3MAG
188
	CFLAGS += -DUSE_MK3MAG
183
endif
189
endif
184
ifeq ($(EXT), NAVICTRL)
190
ifeq ($(EXT), NAVICTRL)
185
 CFLAGS += -DUSE_NAVICTRL
191
	CFLAGS += -DUSE_NAVICTRL
186
ifeq ($(RC), DSL)
192
	ifeq ($(RC), DSL)
187
  CFLAGS += -DUSE_RC_DSL
193
		CFLAGS += -DUSE_RC_DSL
188
endif
194
	endif
-
 
195
	ifeq ($(RC), SPEKTRUM)
-
 
196
		CFLAGS += -DUSE_RC_SPEKTRUM
-
 
197
	endif
-
 
198
	#LPD: FC_JN_Receiver support added
189
ifeq ($(RC), SPEKTRUM)
199
	ifeq ($(RC), JENNIC)
190
  CFLAGS += -DUSE_RC_SPEKTRUM
200
		CFLAGS += -DUSE_RC_JENNIC
Line 191... Line 201...
191
endif
201
	endif