Subversion Repositories Projects

Rev

Rev 759 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 759 Rev 765
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    =  6
8
VERSION_PATCH    =  7
Line 9... Line 9...
9
 
9
 
10
VERSION_SERIAL_MAJOR = 11	# 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
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 = usbasp
175
AVRDUDE_PROGRAMMER = avrispv2
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 
-
 
183
AVRDUDE_WRITE_FLASH = -U flash:w:$(TARGET).hex $(FUSE_SETTINGS)
182
#AVRDUDE_WRITE_FLASH = -U flash:w:$(TARGET).hex 
Line 184... Line 183...
184
AVRDUDE_WRITE_FUSE = $(FUSE_SETTINGS)
183
AVRDUDE_WRITE_FLASH = -U flash:w:$(TARGET).hex $(FUSE_SETTINGS)
185
AVRDUDE_WRITE_EEPROM = -U eeprom:w:$(TARGET).eep
184
#AVRDUDE_WRITE_EEPROM = -U eeprom:w:$(TARGET).eep
Line 186... Line 185...
186
 
185
 
187
#avrdude -c avrispv2 -P usb -p m32 -U flash:w:blink.hex
186
#avrdude -c avrispv2 -P usb -p m32 -U flash:w:blink.hex
188
AVRDUDE_FLAGS = -p $(MCU) -c $(AVRDUDE_PROGRAMMER)
187
AVRDUDE_FLAGS = -p $(MCU) -P $(AVRDUDE_PORT) -c $(AVRDUDE_PROGRAMMER)
189
 
188
 
Line 224... Line 223...
224
 
223
 
225
REMOVE = rm -f
224
REMOVE = rm -f
Line 226... Line 225...
226
COPY = cp
225
COPY = cp
227
 
226
 
-
 
227
HEXSIZE = $(SIZE) --target=$(FORMAT) $(TARGET).hex
Line 228... Line 228...
228
HEXSIZE = $(SIZE) --target=$(FORMAT) $(TARGET).hex
228
ELFSIZE = $(SIZE) -x -A $(TARGET).elf
229
ELFSIZE = $(SIZE) -A $(TARGET).elf
229
LIMITS = $(SIZE) -C --mcu=$(MCU) $(TARGET).elf
230
 
230
 
231
# Define Messages
231
# Define Messages
Line 280... Line 280...
280
	@echo
280
	@echo
Line 281... Line 281...
281
 
281
 
282
 
282
 
283
# Display size of file.
283
# Display size of file.
Line 284... Line 284...
284
sizebefore:
284
sizebefore:
285
	@if [ -f $(TARGET).elf ]; then echo; echo $(MSG_SIZE_BEFORE); $(ELFSIZE); echo; fi
285
	@if [ -f $(TARGET).elf ]; then echo; echo $(MSG_SIZE_BEFORE); $(ELFSIZE); $(HEXSIZE); $(LIMITS); echo; fi
Line 286... Line 286...
286
 
286
 
287
sizeafter:
287
sizeafter:
Line 316... Line 316...
316
 
316
 
317
 
-
 
318
 
-
 
319
 
-
 
320
# Program the device.  
317
 
321
flash: $(TARGET).hex
318
 
322
	$(AVRDUDE) $(AVRDUDE_FLAGS) $(AVRDUDE_WRITE_FLASH)
-
 
323
 
-
 
324
eeprom: $(TARGET).eep
-
 
325
	$(AVRDUDE) $(AVRDUDE_FLAGS) $(AVRDUDE_WRITE_EEPROM)
-
 
326
 
-
 
327
fuse:
-
 
Line 328... Line 319...
328
	$(AVRDUDE) $(AVRDUDE_FLAGS) $(AVRDUDE_WRITE_FUSE)
319