2007-03-24 22:59:30 -04:00
|
|
|
#include "devdesc.h"
|
|
|
|
#include "usbconfig.h"
|
|
|
|
|
|
|
|
#define USBDESCR_DEVICE 1
|
|
|
|
|
|
|
|
const char usbDescrDevice[] PROGMEM = { /* USB device descriptor */
|
|
|
|
18, /* sizeof(usbDescrDevice): length of descriptor in bytes */
|
|
|
|
USBDESCR_DEVICE, /* descriptor type */
|
|
|
|
0x01, 0x01, /* USB version supported */
|
|
|
|
USB_CFG_DEVICE_CLASS,
|
|
|
|
USB_CFG_DEVICE_SUBCLASS,
|
|
|
|
0, /* protocol */
|
|
|
|
8, /* max packet size */
|
|
|
|
USB_CFG_VENDOR_ID, /* 2 bytes */
|
|
|
|
USB_CFG_DEVICE_ID, /* 2 bytes */
|
|
|
|
USB_CFG_DEVICE_VERSION, /* 2 bytes */
|
|
|
|
#if USB_CFG_VENDOR_NAME_LEN
|
|
|
|
1, /* manufacturer string index */
|
|
|
|
#else
|
|
|
|
0, /* manufacturer string index */
|
|
|
|
#endif
|
2009-05-02 09:55:11 -04:00
|
|
|
|
2007-03-24 22:59:30 -04:00
|
|
|
2, /* product string index */
|
|
|
|
3, /* serial number string index */
|
|
|
|
1, /* number of configurations */
|
|
|
|
};
|
|
|
|
|
|
|
|
int getUsbDescrDevice_size(void) { return sizeof(usbDescrDevice); }
|
|
|
|
|