Rev 691 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 691 | Rev 759 | ||
---|---|---|---|
Line 3... | Line 3... | ||
3 | MCU = atmega644p |
3 | MCU = atmega644p |
4 | F_CPU = 20000000 |
4 | F_CPU = 20000000 |
5 | #------------------------------------------------------------------- |
5 | #------------------------------------------------------------------- |
6 | VERSION_MAJOR = 0 |
6 | VERSION_MAJOR = 0 |
7 | VERSION_MINOR = 1 |
7 | VERSION_MINOR = 1 |
8 | VERSION_PATCH = 5 |
8 | VERSION_PATCH = 6 |
Line 9... | Line 9... | ||
9 | 9 | ||
10 | VERSION_SERIAL_MAJOR = 10 # Serial Protocol Major Version |
10 | VERSION_SERIAL_MAJOR = 11 # Serial Protocol Major Version |
Line 11... | Line 11... | ||
11 | VERSION_SERIAL_MINOR = 0 # Serial Protocol Minor Version |
11 | VERSION_SERIAL_MINOR = 0 # Serial Protocol Minor Version |
12 | 12 | ||
13 | #------------------------------------------------------------------- |
13 | #------------------------------------------------------------------- |
Line 170... | Line 170... | ||
170 | # to get a full listing. |
170 | # to get a full listing. |
171 | # |
171 | # |
172 | #AVRDUDE_PROGRAMMER = dt006 |
172 | #AVRDUDE_PROGRAMMER = dt006 |
173 | #AVRDUDE_PROGRAMMER = stk200 |
173 | #AVRDUDE_PROGRAMMER = stk200 |
174 | #AVRDUDE_PROGRAMMER = ponyser |
174 | #AVRDUDE_PROGRAMMER = ponyser |
175 | AVRDUDE_PROGRAMMER = avrispv2 |
175 | AVRDUDE_PROGRAMMER = usbasp |
176 | #falls Ponyser ausgewählt wird, muss sich unsere avrdude-Configdatei im Bin-Verzeichnis des Compilers befinden |
176 | #falls Ponyser ausgewählt wird, muss sich unsere avrdude-Configdatei im Bin-Verzeichnis des Compilers befinden |
Line 177... | Line 177... | ||
177 | 177 | ||
178 | #AVRDUDE_PORT = com1 # programmer connected to serial device |
178 | #AVRDUDE_PORT = com1 # programmer connected to serial device |
179 | #AVRDUDE_PORT = lpt1 # programmer connected to parallel port |
179 | #AVRDUDE_PORT = lpt1 # programmer connected to parallel port |
Line 180... | Line 180... | ||
180 | AVRDUDE_PORT = usb # programmer connected to USB |
180 | #AVRDUDE_PORT = usb # programmer connected to USB |
181 | 181 | ||
- | 182 | #AVRDUDE_WRITE_FLASH = -U flash:w:$(TARGET).hex |
|
182 | #AVRDUDE_WRITE_FLASH = -U flash:w:$(TARGET).hex |
183 | AVRDUDE_WRITE_FLASH = -U flash:w:$(TARGET).hex $(FUSE_SETTINGS) |
Line 183... | Line 184... | ||
183 | AVRDUDE_WRITE_FLASH = -U flash:w:$(TARGET).hex $(FUSE_SETTINGS) |
184 | AVRDUDE_WRITE_FUSE = $(FUSE_SETTINGS) |
184 | #AVRDUDE_WRITE_EEPROM = -U eeprom:w:$(TARGET).eep |
185 | AVRDUDE_WRITE_EEPROM = -U eeprom:w:$(TARGET).eep |
Line 185... | Line 186... | ||
185 | 186 | ||
186 | #avrdude -c avrispv2 -P usb -p m32 -U flash:w:blink.hex |
187 | #avrdude -c avrispv2 -P usb -p m32 -U flash:w:blink.hex |
187 | AVRDUDE_FLAGS = -p $(MCU) -P $(AVRDUDE_PORT) -c $(AVRDUDE_PROGRAMMER) |
188 | AVRDUDE_FLAGS = -p $(MCU) -c $(AVRDUDE_PROGRAMMER) |
188 | 189 | ||
Line 315... | Line 316... | ||
315 | 316 | ||
- | 317 | ||
- | 318 | ||
- | 319 | ||
316 | 320 | # Program the device. |
|
317 | 321 | flash: $(TARGET).hex |
|
- | 322 | $(AVRDUDE) $(AVRDUDE_FLAGS) $(AVRDUDE_WRITE_FLASH) |
|
- | 323 | ||
- | 324 | eeprom: $(TARGET).eep |
|
- | 325 | $(AVRDUDE) $(AVRDUDE_FLAGS) $(AVRDUDE_WRITE_EEPROM) |
|
- | 326 | ||
- | 327 | fuse: |
|
Line 318... | Line 328... | ||
318 | 328 | $(AVRDUDE) $(AVRDUDE_FLAGS) $(AVRDUDE_WRITE_FUSE) |