Rev 149 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | SVN | RSS feed
| Rev 149 | Rev 356 | ||
|---|---|---|---|
| Line 1... | Line 1... | ||
| 1 | # Hey Emacs, this is a -*- makefile -*- |
1 | # Hey Emacs, this is a -*- makefile -*- |
| 2 | # |
2 | # |
| 3 | # WinAVR makefile written by Eric B. Weddington, |
3 | # WinAVR makefile written by Eric B. Weddington, J�rg Wunsch, et al. |
| 4 | # Released to the Public Domain |
4 | # Released to the Public Domain |
| 5 | # Please read the make user manual! |
5 | # Please read the make user manual! |
| 6 | # |
6 | # |
| 7 | # Additional material for this makefile was submitted by: |
7 | # Additional material for this makefile was submitted by: |
| 8 | # Tim Henigan |
8 | # Tim Henigan |
| Line 42... | Line 42... | ||
| 42 | MCU = atmega8 |
42 | MCU = atmega8 |
| 43 | #MCU = atmega16 |
43 | #MCU = atmega16 |
| 44 | 44 | ||
| 45 | 45 | ||
| 46 | # Main Oscillator Frequency |
46 | # Main Oscillator Frequency |
| - | 47 | F_CPU = 9216000 |
|
| 47 | ##F_OSC = 1000000 |
48 | ##F_OSC = 1000000 |
| 48 | ##F_OSC = 1843200 |
49 | ##F_OSC = 1843200 |
| 49 | ##F_OSC = 2000000 |
50 | ##F_OSC = 2000000 |
| 50 | ##F_OSC = 3686400 |
51 | ##F_OSC = 3686400 |
| 51 | ##F_OSC = 4000000 |
52 | ##F_OSC = 4000000 |
| 52 | ##F_OSC = 8000000 |
53 | ##F_OSC = 8000000 |
| 53 |
|
54 | ##F_OSC = 11059200 |
| 54 | ##F_OSC = 16000000 |
55 | ##F_OSC = 16000000 |
| 55 | 56 | ||
| 56 | # Output format. (can be srec, ihex, binary) |
57 | # Output format. (can be srec, ihex, binary) |
| 57 | FORMAT = ihex |
58 | FORMAT = ihex |
| 58 | 59 | ||
| Line 126... | Line 127... | ||
| 126 | CFLAGS += -funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums |
127 | CFLAGS += -funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums |
| 127 | CFLAGS += -Wall -Wstrict-prototypes |
128 | CFLAGS += -Wall -Wstrict-prototypes |
| 128 | CFLAGS += -Wa,-adhlns=$(<:.c=.lst) |
129 | CFLAGS += -Wa,-adhlns=$(<:.c=.lst) |
| 129 | CFLAGS += $(patsubst %,-I%,$(EXTRAINCDIRS)) |
130 | CFLAGS += $(patsubst %,-I%,$(EXTRAINCDIRS)) |
| 130 | CFLAGS += $(CSTANDARD) |
131 | CFLAGS += $(CSTANDARD) |
| 131 | CFLAGS += - |
132 | CFLAGS += -DF_CPU=$(F_CPU) |
| 132 | 133 | ||
| 133 | 134 | ||
| 134 | 135 | ||
| 135 | # Assembler flags. |
136 | # Assembler flags. |
| 136 | # -Wa,...: tell GCC to pass this to the assembler. |
137 | # -Wa,...: tell GCC to pass this to the assembler. |
| Line 193... | Line 194... | ||
| 193 | # dt006 pavr picoweb pony-stk200 sp12 stk200 stk500 |
194 | # dt006 pavr picoweb pony-stk200 sp12 stk200 stk500 |
| 194 | # |
195 | # |
| 195 | # Type: avrdude -c ? |
196 | # Type: avrdude -c ? |
| 196 | # to get a full listing. |
197 | # to get a full listing. |
| 197 | # |
198 | # |
| 198 | AVRDUDE_PROGRAMMER = |
199 | AVRDUDE_PROGRAMMER = avr910 |
| 199 | 200 | ||
| 200 | # com1 = serial port. Use lpt1 to connect to parallel port. |
201 | # com1 = serial port. Use lpt1 to connect to parallel port. |
| 201 | AVRDUDE_PORT = |
202 | AVRDUDE_PORT = /dev/ttyS0 # programmer connected to serial device |
| 202 | AVRDUDE_BAUD = 115200 |
203 | AVRDUDE_BAUD = 115200 |
| 203 | 204 | ||
| 204 | AVRDUDE_WRITE_FLASH = -U flash:w:$(TARGET).hex |
205 | AVRDUDE_WRITE_FLASH = -U flash:w:$(TARGET).hex |
| 205 | #AVRDUDE_WRITE_EEPROM = -U eeprom:w:$(TARGET).eep |
206 | #AVRDUDE_WRITE_EEPROM = -U eeprom:w:$(TARGET).eep |
| 206 | 207 | ||