diff options
author | Jenna Fox <a@creativepony.com> | 2012-09-23 19:35:41 +1000 |
---|---|---|
committer | Jenna Fox <a@creativepony.com> | 2012-09-23 19:35:41 +1000 |
commit | 288212e19a9341788772afcc0fb02d8240e5ffcc (patch) | |
tree | 2caa021f8fa8a9dd14ef3511341d5f7052826e05 /firmware/usbconfig.h | |
parent | 41b3fdbb95bc6751d00b5c8b9aef61d0a5ec6697 (diff) | |
download | micronucleus-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.h | 10 |
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 ---------------------------- */ |