|
In the configuration descriptor the No of Interfaces needs to be changed from 0 to 1. Eg/
const struct SimpleConfigurationDescriptors configurationDescriptors = {
// Configuration descriptor { sizeof(USBConfigurationDescriptor), USBGenericDescriptor_CONFIGURATION, sizeof(struct SimpleConfigurationDescriptors), 1, // No interface in this configuration was 0 <---Change this line 1, // This is configuration #1 0, // No string descriptor for this configuration BOARD_USB_BMATTRIBUTES, USBConfigurationDescriptor_POWER(100) }, // Interface descriptor { sizeof(USBInterfaceDescriptor), USBGenericDescriptor_INTERFACE, 0, // This is interface #0 0, // This is setting #0 for interface 0, // Interface has no endpoint 0, // No interface class code 0, // No interface subclass code 0, // No interface protocol code 0, // No string descriptor } };
|