From 36da169453b7d716fb63dc804c9853956981c64f Mon Sep 17 00:00:00 2001 From: Christian Starkjohann Date: Wed, 12 Aug 2009 17:10:30 +0000 Subject: - minor beautification... --- libs-device/osccal.c | 4 ++++ libs-device/osccal.h | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) (limited to 'libs-device') 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 +#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 /* for sei() */ +#include // for sei() extern void calibrateOscillator(void); #endif #define USB_RESET_HOOK(resetStarts) if(!resetStarts){cli(); calibrateOscillator(); sei();} -- cgit v1.2.3