Subversion Repositories FlightCtrl

Rev

Rev 1167 | Rev 1174 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1167 Rev 1171
Line 1... Line 1...
1
#--------------------------------------------------------------------
1
#--------------------------------------------------------------------
2
# MCU name
2
# MCU name
3
MCU = atmega644
3
MCU = atmega644p
4
F_CPU = 20000000
4
F_CPU = 20000000
5
#-------------------------------------------------------------------
5
#-------------------------------------------------------------------
6
VERSION_MAJOR    =   0
6
VERSION_MAJOR    =   0
7
VERSION_MINOR    =  72
7
VERSION_MINOR    =  72
8
VERSION_PATCH    =   12
8
VERSION_PATCH    =   14
Line 9... Line 9...
9
 
9
 
10
VERSION_SERIAL_MAJOR = 10  	# Serial Protocol
10
VERSION_SERIAL_MAJOR = 10  	# Serial Protocol
11
VERSION_SERIAL_MINOR = 0  	# Serial Protocol
11
VERSION_SERIAL_MINOR = 0  	# Serial Protocol
12
NC_SPI_COMPATIBLE = 4     	# Navi-Kompatibilität
12
NC_SPI_COMPATIBLE = 5     	# Navi-Kompatibilität
Line 13... Line 13...
13
#-------------------------------------------------------------------
13
#-------------------------------------------------------------------
14
 
14
 
Line 28... Line 28...
28
ifeq ($(MCU), atmega644p)
28
ifeq ($(MCU), atmega644p)
29
 FUSE_SETTINGS = -u -U lfuse:w:0xff:m -U hfuse:w:0xdf:m
29
 FUSE_SETTINGS = -u -U lfuse:w:0xff:m -U hfuse:w:0xdf:m
30
 HEX_NAME = MEGA644
30
 HEX_NAME = MEGA644
31
endif
31
endif
Line 32... Line -...
32
 
-
 
33
 
32
 
34
ifeq ($(F_CPU), 16000000)
33
ifeq ($(F_CPU), 16000000)
35
 QUARZ = 16MHZ
34
 QUARZ = 16MHZ
Line 36... Line 35...
36
endif
35
endif
Line 85... Line 84...
85
TARGET = Flight-Ctrl_$(HEX_NAME)_V$(VERSION_MAJOR)_$(VERSION_MINOR)m
84
TARGET = Flight-Ctrl_$(HEX_NAME)_V$(VERSION_MAJOR)_$(VERSION_MINOR)m
86
endif
85
endif
87
ifeq ($(VERSION_PATCH), 13)
86
ifeq ($(VERSION_PATCH), 13)
88
TARGET = Flight-Ctrl_$(HEX_NAME)_V$(VERSION_MAJOR)_$(VERSION_MINOR)n
87
TARGET = Flight-Ctrl_$(HEX_NAME)_V$(VERSION_MAJOR)_$(VERSION_MINOR)n
89
endif
88
endif
-
 
89
ifeq ($(VERSION_PATCH), 14)
-
 
90
TARGET = Flight-Ctrl_$(HEX_NAME)_V$(VERSION_MAJOR)_$(VERSION_MINOR)o
-
 
91
endif
-
 
92
ifeq ($(VERSION_PATCH), 15)
-
 
93
TARGET = Flight-Ctrl_$(HEX_NAME)_V$(VERSION_MAJOR)_$(VERSION_MINOR)p
-
 
94
endif
-
 
95
ifeq ($(VERSION_PATCH), 16)
-
 
96
TARGET = Flight-Ctrl_$(HEX_NAME)_V$(VERSION_MAJOR)_$(VERSION_MINOR)q
-
 
97
endif
Line 90... Line 98...
90
 
98
 
91
# Optimization level, can be [0, 1, 2, 3, s]. 0 turns off optimization.
99
# Optimization level, can be [0, 1, 2, 3, s]. 0 turns off optimization.
92
# (Note: 3 is not always the best optimization level. See avr-libc FAQ.)
100
# (Note: 3 is not always the best optimization level. See avr-libc FAQ.)
Line 93... Line 101...
93
OPT = s
101
OPT = 2
94
 
102
 
95
##########################################################################################################
103
##########################################################################################################
96
# List C source files here. (C dependencies are automatically generated.)
104
# List C source files here. (C dependencies are automatically generated.)
Line 97... Line 105...
97
SRC = main.c uart.c  printf_P.c timer0.c  analog.c menu.c 
105
SRC = main.c uart.c  printf_P.c timer0.c  analog.c menu.c 
Line 98... Line 106...
98
SRC += twimaster.c rc.c fc.c GPS.c spi.c led.c
106
SRC += twimaster.c rc.c fc.c GPS.c spi.c led.c Spectrum.c
Line 291... Line 299...
291
	@echo $(MSG_END)
299
	@echo $(MSG_END)
292
	@echo
300
	@echo
Line 293... Line 301...
293
 
301
 
-
 
302
 
294
 
303
# Display size of file.
295
# Display size of file.
304
	# Display size of file.
296
sizebefore:
-
 
297
	@if [ -f $(TARGET).elf ]; then echo; echo $(MSG_SIZE_BEFORE); $(ELFSIZE); echo; fi
305
sizebefore:
298
 
306
	@if [ -f $(TARGET).elf ]; then echo Size before:; $(ELFSIZE); $(HEXSIZE); echo; fi
299
sizeafter:
-
 
Line 300... Line 307...
300
	@if [ -f $(TARGET).elf ]; then echo; echo $(MSG_SIZE_AFTER); $(ELFSIZE); echo; fi
307
sizeafter:
301
 
308
	@if [ -f $(TARGET).elf ]; then echo Size after:; $(ELFSIZE); $(HEXSIZE); echo; fi
302
 
309