projects
/
pub
/
USBasp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Bugfix SPI-Clock too high for 16 MHz firmware
[pub/USBasp.git]
/
bin
/
firmware
/
Makefile88
diff --git
a/bin/firmware/Makefile88
b/bin/firmware/Makefile88
index
3caaf0c
..
609d8d7
100644
(file)
--- a/
bin/firmware/Makefile88
+++ b/
bin/firmware/Makefile88
@@
-1,8
+1,15
@@
MCU_TARGET = atmega88
MCU_TARGET = atmega88
+F_CPU = 12000000
FLASHER = avrdude -c usbasp -p $(MCU_TARGET)
usbasp: fuses
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
fuses:
$(FLASHER) -B 300 -U lfuse:w:0xff:m -U hfuse:w:0xdd:m