diff --git a/desc/usb_desc.c b/desc/usb_desc.c index 6bc6593..044e018 100644 --- a/desc/usb_desc.c +++ b/desc/usb_desc.c @@ -33,7 +33,7 @@ const FullConfigurations0 fullConfDescs0 = { 0x9, //bLength UD_Configuration, //bDescriptorType sizeof(struct _FullConfigurations0), //wTotalLength - 0x3, //bNumInterfaces + 0x2, //bNumInterfaces 0x1, //bConfigurationValue 0x0, //iConfiguration USB_CONFIG_ATTR_USB1_1_FLAG, //bmAttributes @@ -101,7 +101,7 @@ const FullConfigurations0 fullConfDescs0 = { (USB_IN << 7) | (1), //bEndpointAddress UT_Bulk, //bmAttributes 0x40, //wMaxPacketSize - 0x14, //bInterval + 0x0, //bInterval }, //ep1in { /* Endpoint descriptor : 1 out */ 0x7, //bLength @@ -109,35 +109,8 @@ const FullConfigurations0 fullConfDescs0 = { (USB_OUT << 7) | (1), //bEndpointAddress UT_Bulk, //bmAttributes 0x40, //wMaxPacketSize - 0x14, //bInterval + 0x0, //bInterval }, //ep1out - { /* Interface descriptor : 2 */ - 0x9, //bLength - UD_Interface, //bDescriptorType - 0x2, //bInterfaceNumber - 0x0, //bAlternateSetting - 0x2, //bNumEndpoints - 0x2, //bInterfaceClass - 0xc, //bInterfaceSubclass - 0x7, //bInterfaceProtocol - 0x0, //iInterface - }, //intf2 - { /* Endpoint descriptor : 3 in */ - 0x7, //bLength - UD_Endpoint, //bDescriptorType - (USB_IN << 7) | (3), //bEndpointAddress - UT_Bulk, //bmAttributes - 0x40, //wMaxPacketSize - 0xa, //bInterval - }, //ep3in - { /* Endpoint descriptor : 3 out */ - 0x7, //bLength - UD_Endpoint, //bDescriptorType - (USB_OUT << 7) | (3), //bEndpointAddress - UT_Bulk, //bmAttributes - 0x40, //wMaxPacketSize - 0xa, //bInterval - }, //ep3out }; const ConfDescs confDescs = { diff --git a/desc/usb_desc.h b/desc/usb_desc.h index 70f24b8..668b07b 100644 --- a/desc/usb_desc.h +++ b/desc/usb_desc.h @@ -46,9 +46,6 @@ typedef struct _FullConfigurations0 { USB_InterfaceDesc intf1; /* Interface descriptor : 1 */ USB_EndpointDesc ep1in; /* Endpoint descriptor : 1 in */ USB_EndpointDesc ep1out; /* Endpoint descriptor : 1 out */ - USB_InterfaceDesc intf2; /* Interface descriptor : 2 */ - USB_EndpointDesc ep3in; /* Endpoint descriptor : 3 in */ - USB_EndpointDesc ep3out; /* Endpoint descriptor : 3 out */ } __attribute__((packed)) FullConfigurations0; extern const FullConfigurations0 fullConfDescs0;