X-Git-Url: http://git.linex4red.de/pub/USBasp.git/blobdiff_plain/77fd24511771873c246c56518e77f1aedde9f0b8..HEAD:/firmware/usbconfig.h diff --git a/firmware/usbconfig.h b/firmware/usbconfig.h index 7170def9c..090349011 100644 --- a/firmware/usbconfig.h +++ b/firmware/usbconfig.h @@ -21,7 +21,6 @@ the newest features and options. */ /* ---------------------------- Hardware Config ---------------------------- */ - #define USB_CFG_IOPORTNAME B /* This is the port where the USB bus is connected. When you configure it to * "B", the registers PORTB, PINB and DDRB will be used. @@ -35,7 +34,11 @@ the newest features and options. * This may be any bit in the port. Please note that D+ must also be connected * to interrupt pin INT0! */ -/* #define USB_CFG_CLOCK_KHZ (F_CPU/1000) */ +#ifdef F_CPU +#define USB_CFG_CLOCK_KHZ (F_CPU/1000) +#else +#define USB_CFG_CLOCK_KHZ 12000 +#endif /* Clock rate of the AVR in MHz. Legal values are 12000, 16000 or 16500. * The 16.5 MHz version of the code requires no crystal, it tolerates +/- 1% * deviation from the nominal frequency. All other rates require a precision @@ -124,7 +127,7 @@ the newest features and options. * you use obdev's free shared VID/PID pair. Be sure to read the rules in * USBID-License.txt! */ -#define USB_CFG_DEVICE_VERSION 0x02, 0x01 +#define USB_CFG_DEVICE_VERSION 0x04, 0x01 /* Version number of the device: Minor number first, then major number. */ #define USB_CFG_VENDOR_NAME 'w', 'w', 'w', '.', 'f', 'i', 's', 'c', 'h', 'l', '.', 'd', 'e'