diff options
Diffstat (limited to 'firmware/usbconfig.h')
| -rw-r--r-- | firmware/usbconfig.h | 17 | 
1 files changed, 12 insertions, 5 deletions
| diff --git a/firmware/usbconfig.h b/firmware/usbconfig.h index 55707cb..560c34d 100644 --- a/firmware/usbconfig.h +++ b/firmware/usbconfig.h @@ -158,11 +158,18 @@   * for each control- and out-endpoint to check for duplicate packets.   */  //#if USB_CFG_CLOCK_KHZ==16500 -#define USB_CFG_HAVE_MEASURE_FRAME_LENGTH   1 -#include "osccal.h" -//#else -//#define USB_CFG_HAVE_MEASURE_FRAME_LENGTH   0 -//#endif + +//#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 + +  /* 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.   */ | 
