aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--libs-device/osccal.c4
-rw-r--r--libs-device/osccal.h4
2 files changed, 6 insertions, 2 deletions
diff --git a/libs-device/osccal.c b/libs-device/osccal.c
index f7c5dd6..01be83e 100644
--- a/libs-device/osccal.c
+++ b/libs-device/osccal.c
@@ -9,6 +9,10 @@
#include <avr/io.h>
+#ifndef uchar
+#define uchar unsigned char
+#endif
+
/* ------------------------------------------------------------------------- */
/* ------------------------ Oscillator Calibration ------------------------- */
/* ------------------------------------------------------------------------- */
diff --git a/libs-device/osccal.h b/libs-device/osccal.h
index fd28efa..1a5fd7a 100644
--- a/libs-device/osccal.h
+++ b/libs-device/osccal.h
@@ -17,11 +17,11 @@ immediately after a USB RESET condition. Timing is done by counting CPU
cycles, so all interrupts must be disabled while the calibration runs. For
low level timing measurements, usbMeasureFrameLength() is called. This
function must be enabled in usbconfig.h by defining
-USB_CFG_HAVE_MEASURE_FRAME_LENGTH to 1. It is also recommended to call
+USB_CFG_HAVE_MEASURE_FRAME_LENGTH to 1. It is recommended to call
calibrateOscillator() from the reset hook in usbconfig.h:
#ifndef __ASSEMBLER__
-#include <avr/interrupt.h> /* for sei() */
+#include <avr/interrupt.h> // for sei()
extern void calibrateOscillator(void);
#endif
#define USB_RESET_HOOK(resetStarts) if(!resetStarts){cli(); calibrateOscillator(); sei();}