summaryrefslogtreecommitdiffstats
path: root/firmware/usbconfig.h
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/usbconfig.h')
-rw-r--r--firmware/usbconfig.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/firmware/usbconfig.h b/firmware/usbconfig.h
index 91cde90..929d5e2 100644
--- a/firmware/usbconfig.h
+++ b/firmware/usbconfig.h
@@ -30,6 +30,16 @@ the newest features and options.
/* Use the define above if you #include usbdrv.c instead of linking against it.
* This technique saves a couple of bytes in flash memory.
*/
+
+//#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
+/* 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.
+ */
/* --------------------------- Functional Range ---------------------------- */