summaryrefslogtreecommitdiffstats
path: root/firmware/usbconfig.h
diff options
context:
space:
mode:
authorJenna Fox <a@creativepony.com>2012-09-23 19:35:41 +1000
committerJenna Fox <a@creativepony.com>2012-09-23 19:35:41 +1000
commit288212e19a9341788772afcc0fb02d8240e5ffcc (patch)
tree2caa021f8fa8a9dd14ef3511341d5f7052826e05 /firmware/usbconfig.h
parent41b3fdbb95bc6751d00b5c8b9aef61d0a5ec6697 (diff)
downloadmicronucleus-288212e19a9341788772afcc0fb02d8240e5ffcc.tar.gz
micronucleus-288212e19a9341788772afcc0fb02d8240e5ffcc.tar.bz2
micronucleus-288212e19a9341788772afcc0fb02d8240e5ffcc.zip
Giving up on HID - looks like OS wants to poll it which wont work with frozen writing/erasing chip, so going to make custom usb class mini bootloader based on this. This is the last commit where there was something which might be adaptable in to a hid driver
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 ---------------------------- */