Added board v2 fuses.
This commit is contained in:
@@ -237,8 +237,8 @@ AVRDUDE_FLAGS += -B 8
|
|||||||
# +-------------------- OCDEN (Enable OCD)
|
# +-------------------- OCDEN (Enable OCD)
|
||||||
#
|
#
|
||||||
# Fuse low byte (0=enable,1=disable):
|
# Fuse low byte (0=enable,1=disable):
|
||||||
# 0xD7 = 1 1 0 1 0 1 1 1
|
# 0xD7 = 1 1 0 1 0 1 1 1 - v3 board
|
||||||
# 0xC7 = 1 1 0 0 0 1 1 1
|
# 0xE7 = 1 1 1 0 0 1 1 1 - v1,v2 board
|
||||||
# 0x62 = 0 1 1 0 0 0 1 0 - default
|
# 0x62 = 0 1 1 0 0 0 1 0 - default
|
||||||
# ^ ^ \+/ \--+--/
|
# ^ ^ \+/ \--+--/
|
||||||
# | | | +------- CKSEL 3..0 (Select Clock Source)
|
# | | | +------- CKSEL 3..0 (Select Clock Source)
|
||||||
@@ -249,7 +249,7 @@ AVRDUDE_FLAGS += -B 8
|
|||||||
# | | | +------- [0010=Calibrated Internal RC Oscillator]
|
# | | | +------- [0010=Calibrated Internal RC Oscillator]
|
||||||
# | | | +------- [0000=External Clock]
|
# | | | +------- [0000=External Clock]
|
||||||
# | | +--------------- SUT 1..0 (Start up Time selection)
|
# | | +--------------- SUT 1..0 (Start up Time selection)
|
||||||
# | | +--------------- [CKSEL0=0:14CK+ 00=4.1ms,01=65ms,10=0ms,11=4.1ms]
|
# | | +--------------- [CKSEL0=0:14CK+ 00=4.1ms,01=65ms,10=BOD,11=4.1ms]
|
||||||
# | | +--------------- [CKSEL0=1:14CK+ 00=65ms,01=BOD,10=4.1ms,11=65ms]
|
# | | +--------------- [CKSEL0=1:14CK+ 00=65ms,01=BOD,10=4.1ms,11=65ms]
|
||||||
# | +------------------ CKOUT (clock output on CKOUT pin)
|
# | +------------------ CKOUT (clock output on CKOUT pin)
|
||||||
# +-------------------- CKDIV8 (divide clock by 8)
|
# +-------------------- CKDIV8 (divide clock by 8)
|
||||||
@@ -269,6 +269,8 @@ AVRDUDE_DEFAULT_FUSES = -U hfuse:w:0x17:m -U lfuse:w:0x62:m -U efuse:w:0xFF:m
|
|||||||
|
|
||||||
AVRDUDE_WRITE_FUSES = -U hfuse:w:0x93:m -U lfuse:w:0xD7:m -U efuse:w:0xFC:m
|
AVRDUDE_WRITE_FUSES = -U hfuse:w:0x93:m -U lfuse:w:0xD7:m -U efuse:w:0xFC:m
|
||||||
|
|
||||||
|
AVRDUDE_WRITE_FUSES_V2 = -U hfuse:w:0x93:m -U lfuse:w:0xE7:m -U efuse:w:0xFC:m
|
||||||
|
|
||||||
AVRDUDE_BOOTL_FUSES = -U hfuse:w:0x92:m -U lfuse:w:0xD7:m -U efuse:w:0xFC:m
|
AVRDUDE_BOOTL_FUSES = -U hfuse:w:0x92:m -U lfuse:w:0xD7:m -U efuse:w:0xFC:m
|
||||||
|
|
||||||
AVRDUDE_READ_FUSES = -U lfuse:r:-:h -U hfuse:r:-:h -U efuse:r:-:h
|
AVRDUDE_READ_FUSES = -U lfuse:r:-:h -U hfuse:r:-:h -U efuse:r:-:h
|
||||||
@@ -330,6 +332,9 @@ install: $(TARGET_ELF)
|
|||||||
writefuses:
|
writefuses:
|
||||||
$(AVRDUDE) $(AVRDUDE_FLAGS) $(AVRDUDE_WRITE_FUSES)
|
$(AVRDUDE) $(AVRDUDE_FLAGS) $(AVRDUDE_WRITE_FUSES)
|
||||||
|
|
||||||
|
writefusesv2:
|
||||||
|
$(AVRDUDE) $(AVRDUDE_FLAGS) $(AVRDUDE_WRITE_FUSES_V2)
|
||||||
|
|
||||||
bootloadfuses:
|
bootloadfuses:
|
||||||
$(AVRDUDE) $(AVRDUDE_FLAGS) $(AVRDUDE_BOOTL_FUSES)
|
$(AVRDUDE) $(AVRDUDE_FLAGS) $(AVRDUDE_BOOTL_FUSES)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user