X-Git-Url: http://git.linex4red.de/pub/USBasp.git/blobdiff_plain/a3f4cc327477c46d2dadce91a492e26413243001..00bb9c112fa6dfa84d3571659527c13af7170279:/bin/firmware/Makefile328 diff --git a/bin/firmware/Makefile328 b/bin/firmware/Makefile328 index 8957fb37d..f08652806 100644 --- a/bin/firmware/Makefile328 +++ b/bin/firmware/Makefile328 @@ -1,8 +1,15 @@ MCU_TARGET = atmega328p +F_CPU = 16000000 FLASHER = avrdude -c usbasp -p $(MCU_TARGET) usbasp: fuses +ifeq ($(F_CPU), 12000000) $(FLASHER) -B 1 -U flash:w:usbasp.atmega328-12MHz.2011-05-28.hex +else ifeq ($(F_CPU), 16000000) + $(FLASHER) -B 1 -U flash:w:usbasp.atmega328-16MHz.2011-05-28.hex +else + $(error setting of F_CPU is not supported.) +endif fuses: $(FLASHER) -B 300 -U lfuse:w:0xef:m -U hfuse:w:0xd9:m -U efuse:w:0x05:m