X-Git-Url: http://git.linex4red.de/pub/USBasp.git/blobdiff_plain/d784baaa3a97929fc9a7fed7fff84ff7b0f5bc17..bc3db793e9867567bc881942845c7d84c2b09e37:/LUFA/Drivers/USB/Core/ConfigDescriptor.h diff --git a/LUFA/Drivers/USB/Core/ConfigDescriptor.h b/LUFA/Drivers/USB/Core/ConfigDescriptor.h index 85cee466e..361ffa0df 100644 --- a/LUFA/Drivers/USB/Core/ConfigDescriptor.h +++ b/LUFA/Drivers/USB/Core/ConfigDescriptor.h @@ -52,7 +52,7 @@ /* Includes: */ #include "../../../Common/Common.h" - #include "USBMode.h" + #include "USBMode.h" #include "HostStandardReq.h" #include "StdDescriptors.h" @@ -68,11 +68,6 @@ /* Public Interface - May be used in end-application: */ /* Macros: */ - /** Mask for determining the type of an endpoint from an endpoint descriptor. This should then be compared - * with the \c EP_TYPE_* masks to determine the exact type of the endpoint. - */ - #define EP_TYPE_MASK 0x03 - /** Casts a pointer to a descriptor inside the configuration descriptor into a pointer to the given * descriptor type. * @@ -271,7 +266,7 @@ void** CurrConfigLoc) { uint16_t CurrDescriptorSize = DESCRIPTOR_CAST(*CurrConfigLoc, USB_Descriptor_Header_t).Size; - + if (*BytesRem < CurrDescriptorSize) CurrDescriptorSize = *BytesRem;