@ -63,7 +63,7 @@ uint8_t ProcessConfigurationDescriptor(void)
default :
default :
return ControlError ;
return ControlError ;
}
}
/* Get the mouse interface from the configuration descriptor */
/* Get the mouse interface from the configuration descriptor */
if ( USB_GetNextDescriptorComp ( & CurrConfigBytesRem , & CurrConfigLocation ,
if ( USB_GetNextDescriptorComp ( & CurrConfigBytesRem , & CurrConfigLocation ,
DComp_NextMouseInterface ) ! = DESCRIPTOR_SEARCH_COMP_Found )
DComp_NextMouseInterface ) ! = DESCRIPTOR_SEARCH_COMP_Found )
@ -81,8 +81,8 @@ uint8_t ProcessConfigurationDescriptor(void)
}
}
/* Save the HID report size for later use */
/* Save the HID report size for later use */
HIDReportSize = DESCRIPTOR_CAST ( C onfigDescriptorData , USB_Descriptor_HID_t ) . HIDReportLength ;
HIDReportSize = DESCRIPTOR_CAST ( C urrConfigLocation , USB_Descriptor_HID_t ) . HIDReportLength ;
/* Get the mouse interface's data endpoint descriptor */
/* Get the mouse interface's data endpoint descriptor */
if ( USB_GetNextDescriptorComp ( & CurrConfigBytesRem , & CurrConfigLocation ,
if ( USB_GetNextDescriptorComp ( & CurrConfigBytesRem , & CurrConfigLocation ,
DComp_NextInterfaceMouseDataEndpoint ) ! = DESCRIPTOR_SEARCH_COMP_Found )
DComp_NextInterfaceMouseDataEndpoint ) ! = DESCRIPTOR_SEARCH_COMP_Found )
@ -92,7 +92,7 @@ uint8_t ProcessConfigurationDescriptor(void)
}
}
/* Retrieve the endpoint address from the endpoint descriptor */
/* Retrieve the endpoint address from the endpoint descriptor */
USB_Descriptor_Endpoint_t * EndpointData = DESCRIPTOR_PCAST ( C onfigDescriptorData , USB_Descriptor_Endpoint_t ) ;
USB_Descriptor_Endpoint_t * EndpointData = DESCRIPTOR_PCAST ( C urrConfigLocation , USB_Descriptor_Endpoint_t ) ;
/* Configure the mouse data pipe */
/* Configure the mouse data pipe */
Pipe_ConfigurePipe ( MOUSE_DATAPIPE , EP_TYPE_INTERRUPT , PIPE_TOKEN_IN ,
Pipe_ConfigurePipe ( MOUSE_DATAPIPE , EP_TYPE_INTERRUPT , PIPE_TOKEN_IN ,