MCU_TARGET = atmega328p
-F_CPU = 16000000
+F_CPU = 12000000
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
+ $(FLASHER) -B 1 -U flash:w:usbasp.atmega328p-12MHz.hex
else ifeq ($(F_CPU), 16000000)
- $(FLASHER) -B 1 -U flash:w:usbasp.atmega328-16MHz.2011-05-28.hex
+ $(FLASHER) -B 1 -U flash:w:usbasp.atmega328p-16MHz.hex
else
$(error setting of F_CPU is not supported.)
endif