Skip to content

Commit

Permalink
set correct MCU for flashing fuses
Browse files Browse the repository at this point in the history
  • Loading branch information
breaker27 committed Nov 16, 2013
1 parent a69418b commit 9e49468
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions firmware/makefile_common/Makefile.targets
Expand Up @@ -66,10 +66,10 @@ program:
$(AVRDUDE) -p $(AVRDUDEMCU) -U flash:w:$(BINDIR)/$(TARGET).hex

program_fuses: fuse
$(AVRDUDE) -p m328p -U lfuse:w:$(BINDIR)/lfuse.bin:r -U hfuse:w:$(BINDIR)/hfuse.bin:r -U efuse:w:$(BINDIR)/efuse.bin:r
$(AVRDUDE) -p $(AVRDUDEMCU) -U lfuse:w:$(BINDIR)/lfuse.bin:r -U hfuse:w:$(BINDIR)/hfuse.bin:r -U efuse:w:$(BINDIR)/efuse.bin:r

read_fuses:
$(AVRDUDE) -p m328p -U lfuse:r:-:b -U hfuse:r:-:b -U efuse:r:-:b
$(AVRDUDE) -p $(AVRDUDEMCU) -U lfuse:r:-:b -U hfuse:r:-:b -U efuse:r:-:b

# Listing of phony targets.
.PHONY : all elf hex eep lss sym clean distclean

0 comments on commit 9e49468

Please sign in to comment.