|
|
@ -109,7 +109,7 @@
|
|
|
|
*
|
|
|
|
*
|
|
|
|
* \see \ref USB_GetNextDescriptorComp function for more details
|
|
|
|
* \see \ref USB_GetNextDescriptorComp function for more details
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
typedef uint8_t (* const ConfigComparatorPtr_t)(void* const);
|
|
|
|
typedef uint8_t (* const ConfigComparatorPtr_t)(void*);
|
|
|
|
|
|
|
|
|
|
|
|
/* Function Prototypes: */
|
|
|
|
/* Function Prototypes: */
|
|
|
|
/** Searches for the next descriptor in the given configuration descriptor using a premade comparator
|
|
|
|
/** Searches for the next descriptor in the given configuration descriptor using a premade comparator
|
|
|
@ -263,7 +263,7 @@
|
|
|
|
{
|
|
|
|
{
|
|
|
|
uint16_t CurrDescriptorSize = DESCRIPTOR_CAST(*CurrConfigLoc, USB_Descriptor_Header_t).Size;
|
|
|
|
uint16_t CurrDescriptorSize = DESCRIPTOR_CAST(*CurrConfigLoc, USB_Descriptor_Header_t).Size;
|
|
|
|
|
|
|
|
|
|
|
|
*((uint8_t**)CurrConfigLoc) += CurrDescriptorSize;
|
|
|
|
*CurrConfigLoc += CurrDescriptorSize;
|
|
|
|
*BytesRem -= CurrDescriptorSize;
|
|
|
|
*BytesRem -= CurrDescriptorSize;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|