aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Starkjohann <cs+github@obdev.at>2017-01-24 22:57:33 +0100
committerChristian Starkjohann <cs+github@obdev.at>2017-01-24 22:57:33 +0100
commit4658fc9b4759bf70abd0c4eba1c4c6faa6f9b0ff (patch)
tree000a37374e5d9bc6a32e6a0b60b43f633c7a022b
parent59f435f29380769e013c6defd85cb22a81982c46 (diff)
downloadv-usb-4658fc9b4759bf70abd0c4eba1c4c6faa6f9b0ff.tar.gz
v-usb-4658fc9b4759bf70abd0c4eba1c4c6faa6f9b0ff.tar.bz2
v-usb-4658fc9b4759bf70abd0c4eba1c4c6faa6f9b0ff.zip
Added comment about improved osccal implementation in assembler.
-rw-r--r--libs-device/osccal.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/libs-device/osccal.c b/libs-device/osccal.c
index c1bff32..ea170ec 100644
--- a/libs-device/osccal.c
+++ b/libs-device/osccal.c
@@ -16,6 +16,12 @@
/* ------------------------ Oscillator Calibration ------------------------- */
/* ------------------------------------------------------------------------- */
+/* This is a "C" implementation. You can customize it to your needs easily.
+ * If you want smaller code size, there is an improved version in the
+ * micronucleous project. See
+ * https://github.com/micronucleus/micronucleus/blob/master/firmware/osccalASM.S
+ */
+
/* Calibrate the RC oscillator. Our timing reference is the Start Of Frame
* signal (a single SE0 bit) repeating every millisecond immediately after
* a USB RESET. We first do a binary search for the OSCCAL value and then