Subversion Repositories FlightCtrl

Rev

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

Rev 752 Rev 754
Line 1... Line 1...
1
#--------------------------------------------------------------------
1
#--------------------------------------------------------------------
2
# MCU name
2
# MCU name
-
 
3
#MCU = atmega644
3
MCU = atmega644p
4
MCU = atmega644p  
4
F_CPU = 20000000
5
F_CPU = 20000000
5
#-------------------------------------------------------------------
6
#-------------------------------------------------------------------
6
VERSION_MAJOR    =   0
7
VERSION_MAJOR    =   0
7
VERSION_MINOR    =  68
8
VERSION_MINOR    =  68
8
VERSION_INDEX    =   3
9
VERSION_INDEX    =   3
Line 9... Line 10...
9
 
10
 
10
VERSION_COMPATIBLE = 7  # PC-Kompatibilität
11
VERSION_COMPATIBLE = 7  # PC-Kompatibilität
11
#-------------------------------------------------------------------
12
#-------------------------------------------------------------------
12
 
13
#OPTIONS
13
ifeq ($(MCU), atmega32)
-
 
14
# FUSE_SETTINGS= -u -U lfuse:w:0xff:m -U hfuse:w:0xcf:m
-
 
15
 
14
COMPASS = MM3
16
 HEX_NAME = MEGA32
-
 
-
 
15
#COMPASS = CMPS03
Line 17... Line 16...
17
endif
16
#-------------------------------------------------------------------
18
 
17
 
19
ifeq ($(MCU), atmega644)
18
ifeq ($(MCU), atmega644)
20
FUSE_SETTINGS = -u -U lfuse:w:0xff:m -U hfuse:w:0xdf:m
19
FUSE_SETTINGS = -u -U lfuse:w:0xff:m -U hfuse:w:0xdf:m
Line 35... Line 34...
35
 
34
 
36
ifeq ($(F_CPU), 20000000)
35
ifeq ($(F_CPU), 20000000)
37
 QUARZ = 20MHZ
36
 QUARZ = 20MHZ
Line -... Line 37...
-
 
37
endif
-
 
38
 
-
 
39
ifeq ($(COMPASS), MM3)
-
 
40
 HEX_NAME +=MM3
-
 
41
 CFLAGS += -DUSE_MM3
-
 
42
endif
-
 
43
 
-
 
44
ifeq ($(COMPASS), CMPS03)
-
 
45
 HEX_NAME +=CMPS03
Line 38... Line 46...
38
endif
46
 CFLAGS += -DUSE_CMPS03
39
 
47
endif
Line 40... Line 48...
40
 
48
 
Line 73... Line 81...
73
OPT = s
81
OPT = s
Line 74... Line 82...
74
 
82
 
75
##########################################################################################################
83
##########################################################################################################
76
# List C source files here. (C dependencies are automatically generated.)
84
# List C source files here. (C dependencies are automatically generated.)
77
SRC = main.c uart.c  printf_P.c timer0.c timer2.c analog.c menu.c 
85
SRC = main.c uart.c  printf_P.c timer0.c timer2.c analog.c menu.c 
-
 
86
SRC += twimaster.c rc.c fc.c GPS.c spi.c eeprom.c 
-
 
87
ifeq ($(COMPASS), MM3)
-
 
88
SRC +=mm3.c
-
 
89
endif
-
 
90
ifeq ($(COMPASS), CMPS03)
-
 
91
SRC +=cmps03.c
78
SRC += twimaster.c rc.c fc.c GPS.c spi.c eeprom.c mm3.c
92
endif
79
SRC += mymath.c ubx.c fifo.c
93
SRC += mymath.c ubx.c fifo.c
80
ifeq ($(MCU), atmega644p)
94
ifeq ($(MCU), atmega644p)
81
SRC += uart1.c
95
SRC += uart1.c
82
endif
96
endif
Line 121... Line 135...
121
#CFLAGS += -std=c99
135
#CFLAGS += -std=c99
122
CFLAGS += -std=gnu99
136
CFLAGS += -std=gnu99
Line 123... Line 137...
123
 
137
 
Line -... Line 138...
-
 
138
CFLAGS += -DVERSION_MAJOR=$(VERSION_MAJOR) -DVERSION_MINOR=$(VERSION_MINOR) -DVERSION_COMPATIBLE=$(VERSION_COMPATIBLE) -DVERSION_INDEX=$(VERSION_INDEX)
-
 
139
 
-
 
140
ifeq ($(COMPASS), MM3)
-
 
141
 CFLAGS += -DUSE_MM3
-
 
142
endif
-
 
143
ifeq ($(COMPASS), CMPS03)
-
 
144
 CFLAGS += -DUSE_CMPS03
-
 
145
endif
Line 124... Line 146...
124
CFLAGS += -DVERSION_MAJOR=$(VERSION_MAJOR) -DVERSION_MINOR=$(VERSION_MINOR) -DVERSION_COMPATIBLE=$(VERSION_COMPATIBLE) -DVERSION_INDEX=$(VERSION_INDEX)
146
 
125
 
147
 
126
 
148
 
127
# Optional assembler flags.
149
# Optional assembler flags.