diff options
author | Christian Starkjohann <cs+github@obdev.at> | 2009-08-12 17:10:30 +0000 |
---|---|---|
committer | Christian Starkjohann <cs+github@obdev.at> | 2009-08-12 17:10:30 +0000 |
commit | 36da169453b7d716fb63dc804c9853956981c64f (patch) | |
tree | 330ec27a60b94e1bbefde47310312282f97244fc /libs-device/osccal.h | |
parent | 621b168b700396caa9569ebb645511492817c748 (diff) | |
download | v-usb-36da169453b7d716fb63dc804c9853956981c64f.tar.gz v-usb-36da169453b7d716fb63dc804c9853956981c64f.tar.bz2 v-usb-36da169453b7d716fb63dc804c9853956981c64f.zip |
- minor beautification...
Diffstat (limited to 'libs-device/osccal.h')
-rw-r--r-- | libs-device/osccal.h | 4 |
1 files changed, 2 insertions, 2 deletions
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();} |