Rev 754 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 754 | Rev 756 | ||
---|---|---|---|
Line 1... | Line 1... | ||
1 | #-------------------------------------------------------------------- |
1 | #-------------------------------------------------------------------- |
2 | # MCU name |
2 | # MCU name |
3 | #MCU = atmega644 |
3 | #MCU = atmega644 |
4 | MCU = atmega644p |
4 | MCU = atmega644p |
5 | F_CPU = 20000000 |
5 | F_CPU = 20000000 |
6 | #------------------------------------------------------------------- |
6 | #------------------------------------------------------------------- |
7 | VERSION_MAJOR = 0 |
7 | VERSION_MAJOR = 0 |
8 | VERSION_MINOR = 68 |
8 | VERSION_MINOR = 68 |
9 | VERSION_INDEX = 3 |
9 | VERSION_INDEX = 3 |
Line 17... | Line 17... | ||
17 | 17 | ||
18 | ifeq ($(MCU), atmega644) |
18 | ifeq ($(MCU), atmega644) |
19 | 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 |
20 | #FUSE_SETTINGS = -U lfuse:w:0xff:m -U hfuse:w:0xdf:m |
20 | #FUSE_SETTINGS = -U lfuse:w:0xff:m -U hfuse:w:0xdf:m |
21 | # -u bei neuen Controllern wieder einspielen |
21 | # -u bei neuen Controllern wieder einspielen |
22 | HEX_NAME = MEGA644 |
22 | HEX_NAME = MEGA644_$(COMPASS) |
Line 23... | Line 23... | ||
23 | endif |
23 | endif |
24 | 24 | ||
25 | ifeq ($(MCU), atmega644p) |
25 | ifeq ($(MCU), atmega644p) |
26 | FUSE_SETTINGS = -u -U lfuse:w:0xff:m -U hfuse:w:0xdf:m |
26 | FUSE_SETTINGS = -u -U lfuse:w:0xff:m -U hfuse:w:0xdf:m |
Line 27... | Line 27... | ||
27 | HEX_NAME = MEGA644p |
27 | HEX_NAME = MEGA644p_$(COMPASS) |
28 | endif |
28 | endif |
Line 35... | Line 35... | ||
35 | ifeq ($(F_CPU), 20000000) |
35 | ifeq ($(F_CPU), 20000000) |
36 | QUARZ = 20MHZ |
36 | QUARZ = 20MHZ |
37 | endif |
37 | endif |
Line 38... | Line 38... | ||
38 | 38 | ||
39 | ifeq ($(COMPASS), MM3) |
- | |
40 | HEX_NAME +=MM3 |
39 | ifeq ($(COMPASS), MM3) |
41 | CFLAGS += -DUSE_MM3 |
40 | CFLAGS += -DUSE_MM3 |
Line 42... | Line 41... | ||
42 | endif |
41 | endif |
43 | - | ||
44 | ifeq ($(COMPASS), CMPS03) |
42 | |
45 | HEX_NAME +=CMPS03 |
43 | ifeq ($(COMPASS), CMPS03) |
Line 46... | Line 44... | ||
46 | CFLAGS += -DUSE_CMPS03 |
44 | CFLAGS += -DUSE_CMPS03 |
47 | endif |
45 | endif |
Line 80... | Line 78... | ||
80 | # (Note: 3 is not always the best optimization level. See avr-libc FAQ.) |
78 | # (Note: 3 is not always the best optimization level. See avr-libc FAQ.) |
81 | OPT = s |
79 | OPT = s |
Line 82... | Line 80... | ||
82 | 80 | ||
83 | ########################################################################################################## |
81 | ########################################################################################################## |
84 | # List C source files here. (C dependencies are automatically generated.) |
82 | # List C source files here. (C dependencies are automatically generated.) |
85 | SRC = main.c uart.c printf_P.c timer0.c timer2.c analog.c menu.c |
83 | SRC = main.c uart.c printf_P.c timer0.c timer2.c analog.c menu.c |
- | 84 | SRC += twimaster.c rc.c fc.c GPS.c spi.c eeprom.c mymath.c ubx.c fifo.c |
|
- | 85 | ifeq ($(MCU), atmega644p) |
|
- | 86 | SRC += uart1.c |
|
86 | SRC += twimaster.c rc.c fc.c GPS.c spi.c eeprom.c |
87 | endif |
87 | ifeq ($(COMPASS), MM3) |
88 | ifeq ($(COMPASS), MM3) |
88 | SRC +=mm3.c |
89 | SRC += mm3.c |
89 | endif |
90 | endif |
90 | ifeq ($(COMPASS), CMPS03) |
91 | ifeq ($(COMPASS), CMPS03) |
91 | SRC +=cmps03.c |
- | |
92 | endif |
- | |
93 | SRC += mymath.c ubx.c fifo.c |
- | |
94 | ifeq ($(MCU), atmega644p) |
- | |
95 | SRC += uart1.c |
92 | SRC += cmps03.c |
96 | endif |
93 | endif |
Line 97... | Line 94... | ||
97 | ########################################################################################################## |
94 | ########################################################################################################## |