diff options
Diffstat (limited to 'firmware/configuration/t841_default/Makefile.inc')
-rw-r--r-- | firmware/configuration/t841_default/Makefile.inc | 26 |
1 files changed, 12 insertions, 14 deletions
diff --git a/firmware/configuration/t841_default/Makefile.inc b/firmware/configuration/t841_default/Makefile.inc index 8b856a3..d6198e4 100644 --- a/firmware/configuration/t841_default/Makefile.inc +++ b/firmware/configuration/t841_default/Makefile.inc @@ -2,31 +2,29 @@ # Project: Micronucleus # License: GNU GPL v2 (see License.txt) # -# Controller type: ATtiny 85 -# Configuration: Digispark default configuration. +# Controller type: ATtiny 841 +# Configuration: Default configuration - 12 Mhz RC oscillator # Last Change: Mar 16,2014 -F_CPU = 16500000 -DEVICE = attiny85 -FUSEOPT = $(FUSEOPT_t85) -LOCKOPT = -U lock:w:0x2f:m +F_CPU = 12000000 +DEVICE = attiny841 # hexadecimal address for bootloader section to begin. To calculate the best value: # - make clean; make main.hex; ### output will list data: 2124 (or something like that) # - for the size of your device (8kb = 1024 * 8 = 8192) subtract above value 2124... = 6068 # - How many pages in is that? 6068 / 64 (tiny85 page size in bytes) = 94.8125 # - round that down to 94 - our new bootloader address is 94 * 64 = 6016, in hex = 1780 -BOOTLOADER_ADDRESS = 19C0 +BOOTLOADER_ADDRESS = 1800 -FUSEOPT_t85 = -U lfuse:w:0xe1:m -U hfuse:w:0xdd:m -U efuse:w:0xfe:m -FUSEOPT_t85_DISABLERESET = -U lfuse:w:0xe1:m -U efuse:w:0xfe:m -U hfuse:w:0x5d:m +FUSEOPT = -U lfuse:w:0xe2:m -U hfuse:w:0xdd:m -U efuse:w:0xfe:m +FUSEOPT_DISABLERESET = # TODO #--------------------------------------------------------------------- -# ATtiny85 +# ATtiny841 #--------------------------------------------------------------------- # Fuse extended byte: -# 0xFE = - - - - - 1 1 0 +# 0xFE = 1 1 1 1 1 1 1 0 # ^ # | # +---- SELFPRGEN (enable self programming flash) @@ -52,11 +50,11 @@ FUSEOPT_t85_DISABLERESET = -U lfuse:w:0xe1:m -U efuse:w:0xfe:m -U hfuse:w:0x5d:m # +-------------------- RSTDISBL (disable external reset -> disabled!) # # Fuse low byte: -# 0xe1 = 1 1 1 0 0 0 0 1 +# 0xe2 = 1 1 1 0 0 0 1 0 # ^ ^ \+/ \--+--/ -# | | | +------- CKSEL 3..0 (clock selection -> HF PLL) +# | | | +------- CKSEL 3..0 (clock selection -> RC Oscillator) # | | +--------------- SUT 1..0 (BOD enabled, fast rising power) # | +------------------ CKOUT (clock output on CKOUT pin -> disabled) # +-------------------- CKDIV8 (divide clock by 8 -> don't divide) -############################################################################### + |