diff options
author | cpldcpu <cpldcpu@gmail.com> | 2014-03-16 08:23:24 +0100 |
---|---|---|
committer | cpldcpu <cpldcpu@gmail.com> | 2014-03-16 08:23:24 +0100 |
commit | 07d3143f40e5cee6eae60014a6a6655aefde7a7d (patch) | |
tree | 8ea29d464db51217b4afbe36943de3ef2ba5712d | |
parent | ca5b4534b621a0100cc5aa2ea9babb6f7bafd037 (diff) | |
download | micronucleus-07d3143f40e5cee6eae60014a6a6655aefde7a7d.tar.gz micronucleus-07d3143f40e5cee6eae60014a6a6655aefde7a7d.tar.bz2 micronucleus-07d3143f40e5cee6eae60014a6a6655aefde7a7d.zip |
firmware: page erase timing modification for ATtiny841
-rw-r--r-- | firmware/main.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/firmware/main.c b/firmware/main.c index 13484d3..187ef54 100644 --- a/firmware/main.c +++ b/firmware/main.c @@ -37,13 +37,15 @@ // Byte 0: User program memory size, high byte // Byte 1: User program memory size, low byte // Byte 2: Flash Pagesize in bytes -// Byte 3: Page write timing in ms +// Byte 3: Page write timing in ms. +// Bit 7 '0': Page erase time equals page write time +// Bit 7 '1': Page erase time equals page write time divided by 4 PROGMEM const uint8_t configurationReply[4] = { (((uint16_t)PROGMEM_SIZE) >> 8) & 0xff, ((uint16_t)PROGMEM_SIZE) & 0xff, SPM_PAGESIZE, - MICRONUCLEUS_WRITE_SLEEP + MICRONUCLEUS_WRITE_SLEEP }; typedef union { |