summaryrefslogtreecommitdiffstats
path: root/firmware/configuration/Nanite841/bootloaderconfig.h
diff options
context:
space:
mode:
authorcpldcpu <cpldcpu@gmail.com>2015-05-30 18:39:45 +0200
committercpldcpu <cpldcpu@gmail.com>2015-05-30 18:39:45 +0200
commit616f5810f1ba98f3f963e4e8b947ad3c6bd9ea57 (patch)
treecfab3078f83d8d6e52d91ad8d55939854863a7ae /firmware/configuration/Nanite841/bootloaderconfig.h
parenta7aa590a8965516ad0f0865be2c87b794127a8e0 (diff)
downloadmicronucleus-616f5810f1ba98f3f963e4e8b947ad3c6bd9ea57.tar.gz
micronucleus-616f5810f1ba98f3f963e4e8b947ad3c6bd9ea57.tar.bz2
micronucleus-616f5810f1ba98f3f963e4e8b947ad3c6bd9ea57.zip
firmware: added OSCCAL_SLOW_PROGRAMMING
Diffstat (limited to 'firmware/configuration/Nanite841/bootloaderconfig.h')
-rw-r--r--firmware/configuration/Nanite841/bootloaderconfig.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/firmware/configuration/Nanite841/bootloaderconfig.h b/firmware/configuration/Nanite841/bootloaderconfig.h
index 20be3f6..5812ace 100644
--- a/firmware/configuration/Nanite841/bootloaderconfig.h
+++ b/firmware/configuration/Nanite841/bootloaderconfig.h
@@ -190,6 +190,10 @@
* will be made to calibrate the oscillator. You should deactivate both options above
* if you use this to avoid redundant code.
*
+ * OSCCAL_SLOW_PROGRAMMING Setting this to '1' will set OSCCAL back to the factory calibration during programming to make
+ * sure correct timing is used for the flash writes. This is needed if the micronucleus clock
+ * speed significantly deviated from the default clock. E.g. 12 Mhz on ATtiny841 vs. 8Mhz default.
+ *
* If both options are selected, OSCCAL_RESTORE_DEFAULT takes precedence.
*
* If no option is selected, OSCCAL will be left untouched and stays at either factory calibration or F_CPU depending
@@ -200,6 +204,7 @@
#define OSCCAL_RESTORE_DEFAULT 1
#define OSCCAL_SAVE_CALIB 1
#define OSCCAL_HAVE_XTAL 0
+#define OSCCAL_SLOW_PROGRAMMING 1
/*
* Defines handling of an indicator LED while the bootloader is active.