X-Git-Url: http://git.linex4red.de/pub/USBasp.git/blobdiff_plain/7e397056b12b16fbb9a65f37a2e1aa75174c9fe8..HEAD:/bin/firmware/Makefile328?ds=inline diff --git a/bin/firmware/Makefile328 b/bin/firmware/Makefile328 index ff05ef86e..3a71530f6 100644 --- a/bin/firmware/Makefile328 +++ b/bin/firmware/Makefile328 @@ -7,11 +7,18 @@ ifeq ($(F_CPU), 12000000) $(FLASHER) -B 1 -U flash:w:usbasp.atmega328p-12MHz.hex else ifeq ($(F_CPU), 16000000) $(FLASHER) -B 1 -U flash:w:usbasp.atmega328p-16MHz.hex +else ifeq ($(F_CPU), 18000000) + $(FLASHER) -B 1 -U flash:w:usbasp.atmega328p-18MHz.hex else $(error setting of F_CPU is not supported.) endif fuses: +ifeq ($(F_CPU), 18000000) + $(FLASHER) -B 300 -U lfuse:w:0xe7:m -U hfuse:w:0xd9:m -U efuse:w:0x05:m +else $(FLASHER) -B 300 -U lfuse:w:0xef:m -U hfuse:w:0xd9:m -U efuse:w:0x05:m +endif + shell: $(FLASHER) -B 200 -t