diff options
Diffstat (limited to 'firmware/usbconfig.h')
-rw-r--r-- | firmware/usbconfig.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/firmware/usbconfig.h b/firmware/usbconfig.h index bba210d..560c34d 100644 --- a/firmware/usbconfig.h +++ b/firmware/usbconfig.h @@ -159,8 +159,16 @@ */ //#if USB_CFG_CLOCK_KHZ==16500 +//#include "osccal.h" + +#ifndef __ASSEMBLER__ + void calibrateOscillatorASM(void); + extern uint16_t idlePolls; +# define USB_RESET_HOOK(resetStarts) if(!resetStarts){ ((uint8_t*)&idlePolls)[1]= 0;calibrateOscillatorASM();} + +# define USB_CFG_HAVE_MEASURE_FRAME_LENGTH 0 +#endif -#include "osccal.h" /* define this macro to 1 if you want the function usbMeasureFrameLength() * compiled in. This function can be used to calibrate the AVR's RC oscillator. |