aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Starkjohann <cs+github@obdev.at>2009-08-12 17:10:30 +0000
committerChristian Starkjohann <cs+github@obdev.at>2009-08-12 17:10:30 +0000
commit36da169453b7d716fb63dc804c9853956981c64f (patch)
tree330ec27a60b94e1bbefde47310312282f97244fc
parent621b168b700396caa9569ebb645511492817c748 (diff)
downloadv-usb-36da169453b7d716fb63dc804c9853956981c64f.tar.gz
v-usb-36da169453b7d716fb63dc804c9853956981c64f.tar.bz2
v-usb-36da169453b7d716fb63dc804c9853956981c64f.zip
- minor beautification...
-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();}