Commit 88aad677 authored by David Griffith's avatar David Griffith

Explicitly set the extended fuse bits.

parent 1988817c
......@@ -13,6 +13,7 @@ DEVICE_DEF = __AVR_ATtiny85__
F_CPU = 20000000UL # in Hz
FUSE_L = 0xFF
FUSE_H = 0xDB
FUSE_E = 0xFF
ISP = usbtiny # edit this line for your programmer
AVRDUDE = avrdude -c $(ISP) -p $(PROG_DEVICE)
CFLAGS = -I. -std=c99 -DDEBUG_LEVEL=0 -Wfatal-errors
......@@ -126,7 +127,7 @@ program: flash fuse eeprom
fuse:
@[ "$(FUSE_H)" != "" -a "$(FUSE_L)" != "" ] || \
{ echo "*** Edit Makefile and choose values for FUSE_L and FUSE_H!"; exit 1; }
$(AVRDUDE) -U hfuse:w:$(FUSE_H):m -U lfuse:w:$(FUSE_L):m
$(AVRDUDE) -U hfuse:w:$(FUSE_H):m -U lfuse:w:$(FUSE_L):m -U efuse:w:$(FUSE_E):m
# rule for uploading firmware:
flash: $(PROJECT).hex
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment