Subversion Repositories FlightCtrl

Rev

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

Rev 2055 Rev 2059
Line 265... Line 265...
265
# programmer connected to USB
265
# programmer connected to USB
Line 266... Line 266...
266
 
266
 
267
#AVRDUDE_WRITE_FLASH = -U flash:w:$(TARGET).hex 
267
#AVRDUDE_WRITE_FLASH = -U flash:w:$(TARGET).hex 
268
AVRDUDE_WRITE_FLASH = -U flash:w:$(TARGET).hex $(FUSE_SETTINGS)
268
AVRDUDE_WRITE_FLASH = -U flash:w:$(TARGET).hex $(FUSE_SETTINGS)
-
 
269
#AVRDUDE_WRITE_EEPROM = -U eeprom:w:$(TARGET).eep
Line 269... Line 270...
269
#AVRDUDE_WRITE_EEPROM = -U eeprom:w:$(TARGET).eep
270
AVRDUDE_READ_EEPROM = -U eeprom:r:eeprom.eep:i
270
 
271
 
Line 271... Line 272...
271
# Make a dummy read in order to cycle the reset pin on the MCU. 
272
# Make a dummy read in order to cycle the reset pin on the MCU. 
Line 403... Line 404...
403
 
404
 
404
# Program the device.  
405
# Program the device.  
405
program: $(TARGET).hex $(TARGET).eep
406
program: $(TARGET).hex $(TARGET).eep
Line -... Line 407...
-
 
407
	$(AVRDUDE) $(AVRDUDE_FLAGS) $(AVRDUDE_WRITE_FLASH) $(AVRDUDE_WRITE_EEPROM)
-
 
408
 
-
 
409
# Program the device.  
-
 
410
readeep: 
406
	$(AVRDUDE) $(AVRDUDE_FLAGS) $(AVRDUDE_WRITE_FLASH) $(AVRDUDE_WRITE_EEPROM)
411
	$(AVRDUDE) $(AVRDUDE_FLAGS) $(AVRDUDE_READ_EEPROM)
407
 
412
 
Line 408... Line 413...
408
reset: 
413
reset: 
409
	$(AVRDUDE) $(AVRDUDE_FLAGS) $(AVRDUDE_RESET)
414
	$(AVRDUDE) $(AVRDUDE_FLAGS) $(AVRDUDE_RESET)