Subversion Repositories FlightCtrl

Compare Revisions

Ignore whitespace Rev 2044 → Rev 2045

/branches/dongfang_FC_rewrite/makefile
257,6 → 257,9
AVRDUDE_WRITE_FLASH = -U flash:w:$(TARGET).hex $(FUSE_SETTINGS)
#AVRDUDE_WRITE_EEPROM = -U eeprom:w:$(TARGET).eep
 
# Make a dummy read in order to cycle the reset pin on the MCU.
AVRDUDE_RESET = -u -U lfuse:r:m
 
#avrdude -c avrispv2 -P usb -p m32 -U flash:w:blink.hex
AVRDUDE_FLAGS = -p $(MCU) -P $(AVRDUDE_PORT) -c $(AVRDUDE_PROGRAMMER) -B 1
 
391,6 → 394,9
program: $(TARGET).hex $(TARGET).eep
$(AVRDUDE) $(AVRDUDE_FLAGS) $(AVRDUDE_WRITE_FLASH) $(AVRDUDE_WRITE_EEPROM)
 
reset:
$(AVRDUDE) $(AVRDUDE_FLAGS) $(AVRDUDE_RESET)
 
# Create final output files (.hex, .eep) from ELF output file.
%.hex: %.elf
@echo