X-Git-Url: https://git.cryptolib.org/?p=labortage2013badge.git;a=blobdiff_plain;f=firmware%2Fusbconfig.h;h=58578615233ab1c3d55df6943cf1b3bf28ba136d;hp=341fc71a72a18610af7f8327a90384840033faec;hb=989132e4e29409958b52ba5ccd4e20ce1d0e8442;hpb=06016b0f48e8407fdc6000735d310b84fd1fd0bc diff --git a/firmware/usbconfig.h b/firmware/usbconfig.h index 341fc71..5857861 100644 --- a/firmware/usbconfig.h +++ b/firmware/usbconfig.h @@ -33,11 +33,17 @@ section at the end of this file). /* 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. */ +#if 1 #define USB_CFG_DMINUS_BIT 0 /* This is the bit number in USB_CFG_IOPORT where the USB D- line is connected. * This may be any bit in the port. */ #define USB_CFG_DPLUS_BIT 2 +#else +# define USB_CFG_DMINUS_BIT 3 +# define USB_CFG_DPLUS_BIT 4 +#endif + /* This is the bit number in USB_CFG_IOPORT where the USB D+ line is connected. * This may be any bit in the port. Please note that D+ must also be connected * to interrupt pin INT0! [You can also use other interrupts, see section @@ -233,14 +239,14 @@ section at the end of this file). * Class 0xff is "vendor specific". */ #define USB_CFG_INTERFACE_CLASS 0x03 /* HID class */ -#define USB_CFG_INTERFACE_SUBCLASS 0 /* no boot interface */ +#define USB_CFG_INTERFACE_SUBCLASS 1 /* boot interface */ #define USB_CFG_INTERFACE_PROTOCOL 1 /* keyboard protocol */ /* See USB specification if you want to conform to an existing device class or * protocol. The following classes must be set at interface level: * HID class is 3, no subclass and protocol required (but may be useful!) * CDC class is 2, use subclass 2 and protocol 1 for ACM */ -#define USB_CFG_HID_REPORT_DESCRIPTOR_LENGTH 35 /* total length of report descriptor */ +#define USB_CFG_HID_REPORT_DESCRIPTOR_LENGTH 63 /* total length of report descriptor */ /* Define this to the length of the HID report descriptor, if you implement * an HID device. Otherwise don't define it or define it to 0. * If you use this define, you must add a PROGMEM character array named