X-Git-Url: http://git.linex4red.de/pub/USBasp.git/blobdiff_plain/24f730fce3f2022762011d795c3feada5ef874b3..df31b1fd5b0bfbf02a766d32e23a7af075bf4911:/Bootloaders/TeensyHID/Descriptors.c diff --git a/Bootloaders/TeensyHID/Descriptors.c b/Bootloaders/TeensyHID/Descriptors.c index 098de0df8..791269cbc 100644 --- a/Bootloaders/TeensyHID/Descriptors.c +++ b/Bootloaders/TeensyHID/Descriptors.c @@ -46,7 +46,7 @@ USB_Descriptor_HIDReport_Datatype_t HIDReport[] = { 0x06, 0x9c, 0xff, /* Usage Page (Vendor Defined) */ - 0x09, 0x19, /* Usage (Vendor Defined) */ + 0x09, 0x1B, /* Usage (Vendor Defined) */ 0xa1, 0x01, /* Collection (Vendor Defined) */ 0x0a, 0x19, 0x00, /* Usage (Vendor Defined) */ 0x75, 0x08, /* Report Size (8) */ @@ -78,7 +78,7 @@ USB_Descriptor_Device_t DeviceDescriptor = .ReleaseNumber = 0x0120, .ManufacturerStrIndex = NO_DESCRIPTOR, - .ProductStrIndex = 0x01, + .ProductStrIndex = NO_DESCRIPTOR, .SerialNumStrIndex = NO_DESCRIPTOR, .NumberOfConfigurations = FIXED_NUM_CONFIGURATIONS @@ -144,28 +144,6 @@ USB_Descriptor_Configuration_t ConfigurationDescriptor = }, }; -/** Language descriptor structure. This descriptor, located in FLASH memory, is returned when the host requests - * the string descriptor with index 0 (the first index). It is actually an array of 16-bit integers, which indicate - * via the language ID table available at USB.org what languages the device supports for its string descriptors. - */ -USB_Descriptor_String_t LanguageString = -{ - .Header = {.Size = USB_STRING_LEN(1), .Type = DTYPE_String}, - - .UnicodeString = {LANGUAGE_ID_ENG} -}; - -/** Product descriptor string. This is a Unicode string containing the product's details in human readable form, - * and is read out upon request by the host when the appropriate string ID is requested, listed in the Device - * Descriptor. - */ -USB_Descriptor_String_t ProductString = -{ - .Header = {.Size = USB_STRING_LEN(21), .Type = DTYPE_String}, - - .UnicodeString = L"AVR Teensy Bootloader" -}; - /** This function is called by the library when in device mode, and must be overridden (see library "USB Descriptors" * documentation) by the application code so that the address and size of a requested descriptor can be given * to the USB library. When the device receives a Get Descriptor request on the control endpoint, this function @@ -175,7 +153,6 @@ USB_Descriptor_String_t ProductString = uint16_t CALLBACK_USB_GetDescriptor(const uint16_t wValue, const uint8_t wIndex, void** const DescriptorAddress) { const uint8_t DescriptorType = (wValue >> 8); - const uint8_t DescriptorNumber = (wValue & 0xFF); void* Address = NULL; uint16_t Size = NO_DESCRIPTOR; @@ -190,19 +167,6 @@ uint16_t CALLBACK_USB_GetDescriptor(const uint16_t wValue, const uint8_t wIndex, Address = (void*)&ConfigurationDescriptor; Size = sizeof(USB_Descriptor_Configuration_t); break; - case DTYPE_String: - if (!(DescriptorNumber)) - { - Address = (void*)&LanguageString; - Size = LanguageString.Header.Size; - } - else - { - Address = (void*)&ProductString; - Size = ProductString.Header.Size; - } - - break; case DTYPE_HID: Address = (void*)&ConfigurationDescriptor.HIDDescriptor; Size = sizeof(USB_Descriptor_HID_t);