X-Git-Url: http://git.linex4red.de/pub/USBasp.git/blobdiff_plain/37b2130fb2767a39f3d95414c6aca75a67c26298..e0985b995009d71b80d214a66944e76f4e41aadb:/Bootloaders/TeensyHID/Descriptors.c diff --git a/Bootloaders/TeensyHID/Descriptors.c b/Bootloaders/TeensyHID/Descriptors.c index 68b9c4306..b1642f16b 100644 --- a/Bootloaders/TeensyHID/Descriptors.c +++ b/Bootloaders/TeensyHID/Descriptors.c @@ -71,7 +71,7 @@ USB_Descriptor_Device_t DeviceDescriptor = .SubClass = 0x00, .Protocol = 0x00, - .Endpoint0Size = 8, + .Endpoint0Size = FIXED_CONTROL_ENDPOINT_SIZE, .VendorID = 0x16C0, .ProductID = 0x0478, @@ -128,7 +128,7 @@ USB_Descriptor_Configuration_t ConfigurationDescriptor = .HIDSpec = VERSION_BCD(01.11), .CountryCode = 0x00, - .TotalHIDReports = 0x01, + .TotalHIDDescriptors = 1, .HIDReportType = DTYPE_Report, .HIDReportLength = sizeof(HIDReport) }, @@ -166,7 +166,7 @@ USB_Descriptor_String_t ProductString = .UnicodeString = L"AVR Teensy Bootloader" }; -/** This function is called by the library when in device mode, and must be overridden (see StdDescriptors.h +/** 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 * is called so that the descriptor details can be passed back and the appropriate descriptor sent back to the