From 288212e19a9341788772afcc0fb02d8240e5ffcc Mon Sep 17 00:00:00 2001 From: Jenna Fox Date: Sun, 23 Sep 2012 19:35:41 +1000 Subject: 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 --- firmware/usbconfig.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'firmware/usbconfig.h') 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 ---------------------------- */ -- cgit v1.2.3