X-Git-Url: http://git.linex4red.de/pub/USBasp.git/blobdiff_plain/00bb9c112fa6dfa84d3571659527c13af7170279..7e397056b12b16fbb9a65f37a2e1aa75174c9fe8:/bin/firmware/Makefile88 diff --git a/bin/firmware/Makefile88 b/bin/firmware/Makefile88 index 3caaf0c7d..609d8d7e0 100644 --- a/bin/firmware/Makefile88 +++ b/bin/firmware/Makefile88 @@ -1,8 +1,15 @@ MCU_TARGET = atmega88 +F_CPU = 12000000 FLASHER = avrdude -c usbasp -p $(MCU_TARGET) usbasp: fuses - $(FLASHER) -B 1 -U flash:w:usbasp.atmega88.2011-05-28.hex +ifeq ($(F_CPU), 12000000) + $(FLASHER) -B 1 -U flash:w:usbasp.atmega88-12MHz.hex +else ifeq ($(F_CPU), 16000000) + $(FLASHER) -B 1 -U flash:w:usbasp.atmega88-16MHz.hex +else + $(error setting of F_CPU is not supported.) +endif fuses: $(FLASHER) -B 300 -U lfuse:w:0xff:m -U hfuse:w:0xdd:m