Added fuse target to set fuses.
This commit is contained in:
parent
9994e4084f
commit
c8ee8aa286
@ -1,4 +1,4 @@
|
|||||||
# $Id: Makefile,v 1.1 2006/09/26 18:18:27 rschaten Exp $
|
# $Id: Makefile,v 1.2 2007/11/15 14:42:07 rschaten Exp $
|
||||||
|
|
||||||
AVRDUDE = avrdude -p atmega8 -P /dev/parport0 -c stk200
|
AVRDUDE = avrdude -p atmega8 -P /dev/parport0 -c stk200
|
||||||
|
|
||||||
@ -46,3 +46,25 @@ disasm: main.bin
|
|||||||
|
|
||||||
cpp:
|
cpp:
|
||||||
$(COMPILE) -E main.c
|
$(COMPILE) -E main.c
|
||||||
|
|
||||||
|
# Fuse high byte:
|
||||||
|
# 0xc9 = 1 1 0 0 1 0 0 1
|
||||||
|
# ^ ^ ^ ^ ^ \-+-/
|
||||||
|
# | | | | | +------ BOOT
|
||||||
|
# | | | | +---------- EESAVE (preserve EEPROM on Chip Erase -> not preserved)
|
||||||
|
# | | | +-------------- CKOPT
|
||||||
|
# | | +---------------- SPIEN (enable serial programming -> enabled)
|
||||||
|
# | +------------------ WDTON (watchdog timer always on -> disable)
|
||||||
|
# +-------------------- RSTDISBL (disable external reset -> enabled)
|
||||||
|
#
|
||||||
|
# Fuse low byte:
|
||||||
|
# 0x9f = 1 0 0 1 1 1 1 1
|
||||||
|
# ^ ^ \+/ \--+--/
|
||||||
|
# | | | +------- CKSEL 3..0 (clock selection -> HF PLL)
|
||||||
|
# | | +--------------- SUT 1..0 (BOD enabled, fast rising power)
|
||||||
|
# | +------------------ BODEN
|
||||||
|
# +-------------------- BODLEVEL
|
||||||
|
# external Crystal ===> CKSEL = 1111
|
||||||
|
|
||||||
|
fuses:
|
||||||
|
$(AVRDUDE) -U hfuse:w:0xc9:m -U lfuse:w:0x9f:m
|
||||||
|
Loading…
Reference in New Issue
Block a user