summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorcpldcpu <cpldcpu@gmail.com>2014-06-22 23:09:05 +0200
committercpldcpu <cpldcpu@gmail.com>2014-06-22 23:09:05 +0200
commit8acc614a0d65ef4021295c3d4681f76d24b70e96 (patch)
tree88f3de3f0c666e7a40df9bc15595cbac27b703b3
parentdd4264ead7cdf63af84e68eaeb9470bee6f6b147 (diff)
downloadmicronucleus-8acc614a0d65ef4021295c3d4681f76d24b70e96.tar.gz
micronucleus-8acc614a0d65ef4021295c3d4681f76d24b70e96.tar.bz2
micronucleus-8acc614a0d65ef4021295c3d4681f76d24b70e96.zip
firmware: Upload configuration files for new OSCCAL
-rw-r--r--firmware/configuration/t167_default/bootloaderconfig.h19
-rw-r--r--firmware/configuration/t841_default/bootloaderconfig.h19
-rw-r--r--firmware/configuration/t84_default/bootloaderconfig.h19
-rw-r--r--firmware/configuration/t85_aggressive/bootloaderconfig.h20
-rw-r--r--firmware/configuration/t85_default/bootloaderconfig.h19
5 files changed, 51 insertions, 45 deletions
diff --git a/firmware/configuration/t167_default/bootloaderconfig.h b/firmware/configuration/t167_default/bootloaderconfig.h
index cc0f287..8c29913 100644
--- a/firmware/configuration/t167_default/bootloaderconfig.h
+++ b/firmware/configuration/t167_default/bootloaderconfig.h
@@ -183,29 +183,30 @@
/*
* Defines the setting of the RC-oscillator calibration after quitting the bootloader. (OSCCAL)
*
- * OSCCAL_RESTORE Set this to '1' to revert to factory calibration, which is 16.0 MHZ +/-10%
+ * OSCCAL_RESTORE_DEFAULT Set this to '1' to revert to OSCCAL factore calibration after bootlaoder exit.
+ * This is 8 MHz +/-2% on most devices or 16 MHz on the ATtiny 85 with activated PLL.
* Adds ~14 bytes.
*
- * OSCCAL_16.5MHz Set this to '1' to use the same calibration as during program upload.
- * This value is 16.5Mhz +/-1% as calibrated from the USB timing. Please note
+ * OSCCAL_SAVE_CALIB Set this to '1' to save the OSCCAL calibration during program upload.
+ * This value will be reloaded after reset and will also be used for the user
+ * program unless "OSCCAL_RESTORE_DEFAULT" is active. This allows calibrate the internal
+ * RC oscillator to the F_CPU target frequency +/-1% from the USB timing. Please note
* that only true if the ambient temperature does not change.
- * This is the default behaviour of the original Digispark and is not recommended
- * for use on devices other than the ATtiny85.
* Adds ~38 bytes.
*
* OSCCAL_HAVE_XTAL Set this to '1' if you have an external crystal oscillator. In this case no attempt
* will be made to calibrate the oscillator. You should deactivate both options above
* if you use this to avoid redundant code.
*
- * If both options are selected, OSCCAL_RESTORE takes precedence.
+ * If both options are selected, OSCCAL_RESTORE_DEFAULT takes precedence.
*
- * If no option is selected, OSCCAL will be left untouched and stays at either 16.0 Mhz or 16.5 Mhz depending
+ * If no option is selected, OSCCAL will be left untouched and stays at either factory calibration or F_CPU depending
* on whether the bootloader was activated. This will take the least memory. You can use this if your program
* comes with its own OSCCAL calibration or an external clock source is used.
*/
-#define OSCCAL_RESTORE 0
-#define OSCCAL_16_5MHz 0
+#define OSCCAL_RESTORE_DEFAULT 0
+#define OSCCAL_SAVE_CALIB 0
#define OSCCAL_HAVE_XTAL 1
/*
diff --git a/firmware/configuration/t841_default/bootloaderconfig.h b/firmware/configuration/t841_default/bootloaderconfig.h
index 4a6a148..82cb7d2 100644
--- a/firmware/configuration/t841_default/bootloaderconfig.h
+++ b/firmware/configuration/t841_default/bootloaderconfig.h
@@ -175,29 +175,30 @@
/*
* Defines the setting of the RC-oscillator calibration after quitting the bootloader. (OSCCAL)
*
- * OSCCAL_RESTORE Set this to '1' to revert to factory calibration, which is 16.0 MHZ +/-10%
+ * OSCCAL_RESTORE_DEFAULT Set this to '1' to revert to OSCCAL factore calibration after bootlaoder exit.
+ * This is 8 MHz +/-2% on most devices or 16 MHz on the ATtiny 85 with activated PLL.
* Adds ~14 bytes.
*
- * OSCCAL_16.5MHz Set this to '1' to use the same calibration as during program upload.
- * This value is 16.5Mhz +/-1% as calibrated from the USB timing. Please note
+ * OSCCAL_SAVE_CALIB Set this to '1' to save the OSCCAL calibration during program upload.
+ * This value will be reloaded after reset and will also be used for the user
+ * program unless "OSCCAL_RESTORE_DEFAULT" is active. This allows calibrate the internal
+ * RC oscillator to the F_CPU target frequency +/-1% from the USB timing. Please note
* that only true if the ambient temperature does not change.
- * This is the default behaviour of the original Digispark and is not recommended
- * for use on devices other than the ATtiny85.
* Adds ~38 bytes.
*
* OSCCAL_HAVE_XTAL Set this to '1' if you have an external crystal oscillator. In this case no attempt
* will be made to calibrate the oscillator. You should deactivate both options above
* if you use this to avoid redundant code.
*
- * If both options are selected, OSCCAL_RESTORE takes precedence.
+ * If both options are selected, OSCCAL_RESTORE_DEFAULT takes precedence.
*
- * If no option is selected, OSCCAL will be left untouched and stays at either 16.0 Mhz or 16.5 Mhz depending
+ * If no option is selected, OSCCAL will be left untouched and stays at either factory calibration or F_CPU depending
* on whether the bootloader was activated. This will take the least memory. You can use this if your program
* comes with its own OSCCAL calibration or an external clock source is used.
*/
-#define OSCCAL_RESTORE 1
-#define OSCCAL_16_5MHz 0
+#define OSCCAL_RESTORE_DEFAULT 1
+#define OSCCAL_SAVE_CALIB 1
#define OSCCAL_HAVE_XTAL 0
/*
diff --git a/firmware/configuration/t84_default/bootloaderconfig.h b/firmware/configuration/t84_default/bootloaderconfig.h
index b928800..05748ad 100644
--- a/firmware/configuration/t84_default/bootloaderconfig.h
+++ b/firmware/configuration/t84_default/bootloaderconfig.h
@@ -173,29 +173,30 @@
/*
* Defines the setting of the RC-oscillator calibration after quitting the bootloader. (OSCCAL)
*
- * OSCCAL_RESTORE Set this to '1' to revert to factory calibration, which is 16.0 MHZ +/-10%
+ * OSCCAL_RESTORE_DEFAULT Set this to '1' to revert to OSCCAL factore calibration after bootlaoder exit.
+ * This is 8 MHz +/-2% on most devices or 16 MHz on the ATtiny 85 with activated PLL.
* Adds ~14 bytes.
*
- * OSCCAL_16.5MHz Set this to '1' to use the same calibration as during program upload.
- * This value is 16.5Mhz +/-1% as calibrated from the USB timing. Please note
+ * OSCCAL_SAVE_CALIB Set this to '1' to save the OSCCAL calibration during program upload.
+ * This value will be reloaded after reset and will also be used for the user
+ * program unless "OSCCAL_RESTORE_DEFAULT" is active. This allows calibrate the internal
+ * RC oscillator to the F_CPU target frequency +/-1% from the USB timing. Please note
* that only true if the ambient temperature does not change.
- * This is the default behaviour of the original Digispark and is not recommended
- * for use on devices other than the ATtiny85.
* Adds ~38 bytes.
*
* OSCCAL_HAVE_XTAL Set this to '1' if you have an external crystal oscillator. In this case no attempt
* will be made to calibrate the oscillator. You should deactivate both options above
* if you use this to avoid redundant code.
*
- * If both options are selected, OSCCAL_RESTORE takes precedence.
+ * If both options are selected, OSCCAL_RESTORE_DEFAULT takes precedence.
*
- * If no option is selected, OSCCAL will be left untouched and stays at either 16.0 Mhz or 16.5 Mhz depending
+ * If no option is selected, OSCCAL will be left untouched and stays at either factory calibration or F_CPU depending
* on whether the bootloader was activated. This will take the least memory. You can use this if your program
* comes with its own OSCCAL calibration or an external clock source is used.
*/
-#define OSCCAL_RESTORE 1
-#define OSCCAL_16_5MHz 0
+#define OSCCAL_RESTORE_DEFAULT 1
+#define OSCCAL_SAVE_CALIB 0
#define OSCCAL_HAVE_XTAL 0
/*
diff --git a/firmware/configuration/t85_aggressive/bootloaderconfig.h b/firmware/configuration/t85_aggressive/bootloaderconfig.h
index 805d332..edbc5eb 100644
--- a/firmware/configuration/t85_aggressive/bootloaderconfig.h
+++ b/firmware/configuration/t85_aggressive/bootloaderconfig.h
@@ -169,30 +169,32 @@
/*
* Defines the setting of the RC-oscillator calibration after quitting the bootloader. (OSCCAL)
*
- * OSCCAL_RESTORE Set this to '1' to revert to factory calibration, which is 16.0 MHZ +/-10%
+ * OSCCAL_RESTORE_DEFAULT Set this to '1' to revert to OSCCAL factore calibration after bootlaoder exit.
+ * This is 8 MHz +/-2% on most devices or 16 MHz on the ATtiny 85 with activated PLL.
* Adds ~14 bytes.
*
- * OSCCAL_16.5MHz Set this to '1' to use the same calibration as during program upload.
- * This value is 16.5Mhz +/-1% as calibrated from the USB timing. Please note
+ * OSCCAL_SAVE_CALIB Set this to '1' to save the OSCCAL calibration during program upload.
+ * This value will be reloaded after reset and will also be used for the user
+ * program unless "OSCCAL_RESTORE_DEFAULT" is active. This allows calibrate the internal
+ * RC oscillator to the F_CPU target frequency +/-1% from the USB timing. Please note
* that only true if the ambient temperature does not change.
- * This is the default behaviour of the original Digispark and is not recommended
- * for use on devices other than the ATtiny85.
* Adds ~38 bytes.
*
* OSCCAL_HAVE_XTAL Set this to '1' if you have an external crystal oscillator. In this case no attempt
* will be made to calibrate the oscillator. You should deactivate both options above
* if you use this to avoid redundant code.
*
- * If both options are selected, OSCCAL_RESTORE takes precedence.
+ * If both options are selected, OSCCAL_RESTORE_DEFAULT takes precedence.
*
- * If no option is selected, OSCCAL will be left untouched and stays at either 16.0 Mhz or 16.5 Mhz depending
+ * If no option is selected, OSCCAL will be left untouched and stays at either factory calibration or F_CPU depending
* on whether the bootloader was activated. This will take the least memory. You can use this if your program
* comes with its own OSCCAL calibration or an external clock source is used.
*/
-#define OSCCAL_RESTORE 0
-#define OSCCAL_16_5MHz 0
+#define OSCCAL_RESTORE_DEFAULT 0
+#define OSCCAL_SAVE_CALIB 0
#define OSCCAL_HAVE_XTAL 0
+
/*
* Defines handling of an indicator LED while the bootloader is active.
diff --git a/firmware/configuration/t85_default/bootloaderconfig.h b/firmware/configuration/t85_default/bootloaderconfig.h
index 32beedf..f86b3ac 100644
--- a/firmware/configuration/t85_default/bootloaderconfig.h
+++ b/firmware/configuration/t85_default/bootloaderconfig.h
@@ -167,29 +167,30 @@
/*
* Defines the setting of the RC-oscillator calibration after quitting the bootloader. (OSCCAL)
*
- * OSCCAL_RESTORE Set this to '1' to revert to factory calibration, which is 16.0 MHZ +/-10%
+ * OSCCAL_RESTORE_DEFAULT Set this to '1' to revert to OSCCAL factore calibration after bootlaoder exit.
+ * This is 8 MHz +/-2% on most devices or 16 MHz on the ATtiny 85 with activated PLL.
* Adds ~14 bytes.
*
- * OSCCAL_16.5MHz Set this to '1' to use the same calibration as during program upload.
- * This value is 16.5Mhz +/-1% as calibrated from the USB timing. Please note
+ * OSCCAL_SAVE_CALIB Set this to '1' to save the OSCCAL calibration during program upload.
+ * This value will be reloaded after reset and will also be used for the user
+ * program unless "OSCCAL_RESTORE_DEFAULT" is active. This allows calibrate the internal
+ * RC oscillator to the F_CPU target frequency +/-1% from the USB timing. Please note
* that only true if the ambient temperature does not change.
- * This is the default behaviour of the original Digispark and is not recommended
- * for use on devices other than the ATtiny85.
* Adds ~38 bytes.
*
* OSCCAL_HAVE_XTAL Set this to '1' if you have an external crystal oscillator. In this case no attempt
* will be made to calibrate the oscillator. You should deactivate both options above
* if you use this to avoid redundant code.
*
- * If both options are selected, OSCCAL_RESTORE takes precedence.
+ * If both options are selected, OSCCAL_RESTORE_DEFAULT takes precedence.
*
- * If no option is selected, OSCCAL will be left untouched and stays at either 16.0 Mhz or 16.5 Mhz depending
+ * If no option is selected, OSCCAL will be left untouched and stays at either factory calibration or F_CPU depending
* on whether the bootloader was activated. This will take the least memory. You can use this if your program
* comes with its own OSCCAL calibration or an external clock source is used.
*/
-#define OSCCAL_RESTORE 0
-#define OSCCAL_16_5MHz 1
+#define OSCCAL_RESTORE_DEFAULT 0
+#define OSCCAL_SAVE_CALIB 1
#define OSCCAL_HAVE_XTAL 0
/*