From 4658fc9b4759bf70abd0c4eba1c4c6faa6f9b0ff Mon Sep 17 00:00:00 2001 From: Christian Starkjohann Date: Tue, 24 Jan 2017 22:57:33 +0100 Subject: Added comment about improved osccal implementation in assembler. --- libs-device/osccal.c | 6 ++++++ 1 file changed, 6 insertions(+) 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 -- cgit v1.2.3