summaryrefslogtreecommitdiffstats
path: root/firmware/configuration/t841_default
diff options
context:
space:
mode:
authorcpldcpu <cpldcpu@gmail.com>2015-02-08 16:08:47 +0100
committercpldcpu <cpldcpu@gmail.com>2015-02-08 16:08:47 +0100
commita6f4163452ad6faf0dfd64f115a15cdde75c39a8 (patch)
treec3491dffaac52cb70924cc3c145d8f08618805a7 /firmware/configuration/t841_default
parent49217b956286d37a89265120b6275a2a383c561d (diff)
downloadmicronucleus-a6f4163452ad6faf0dfd64f115a15cdde75c39a8.tar.gz
micronucleus-a6f4163452ad6faf0dfd64f115a15cdde75c39a8.tar.bz2
micronucleus-a6f4163452ad6faf0dfd64f115a15cdde75c39a8.zip
firmware: added Attiny841 configurations
Diffstat (limited to 'firmware/configuration/t841_default')
-rw-r--r--firmware/configuration/t841_default/Makefile.inc2
-rw-r--r--firmware/configuration/t841_default/bootloaderconfig.h4
2 files changed, 3 insertions, 3 deletions
diff --git a/firmware/configuration/t841_default/Makefile.inc b/firmware/configuration/t841_default/Makefile.inc
index e1ec4ce..9601a69 100644
--- a/firmware/configuration/t841_default/Makefile.inc
+++ b/firmware/configuration/t841_default/Makefile.inc
@@ -15,7 +15,7 @@ DEVICE = attiny841
# - 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 = 1A00
+BOOTLOADER_ADDRESS = 19C0
FUSEOPT = -U lfuse:w:0xe2:m -U hfuse:w:0xdd:m -U efuse:w:0xfe:m
FUSEOPT_DISABLERESET = # TODO
diff --git a/firmware/configuration/t841_default/bootloaderconfig.h b/firmware/configuration/t841_default/bootloaderconfig.h
index 82cb7d2..43da39d 100644
--- a/firmware/configuration/t841_default/bootloaderconfig.h
+++ b/firmware/configuration/t841_default/bootloaderconfig.h
@@ -115,7 +115,7 @@
*
*/
-#define ENTRYMODE ENTRY_ALWAYS
+#define ENTRYMODE ENTRY_EXT_RESET
#define JUMPER_PIN PB0
#define JUMPER_PORT PORTB
@@ -197,7 +197,7 @@
* comes with its own OSCCAL calibration or an external clock source is used.
*/
-#define OSCCAL_RESTORE_DEFAULT 1
+#define OSCCAL_ENTRY_ALWAYS
#define OSCCAL_SAVE_CALIB 1
#define OSCCAL_HAVE_XTAL 0