dest_hdl = Device->EndpointHandles[EndPt];
if( !dest_hdl ) {
- dest_hdl = Host->HostDef->InitControl(Host->Ptr, Device->Address*16 + EndPt);
- Device->EndpointHandles[EndPt] = dest_hdl;
+ LEAVE('n');
+ return NULL;
}
req.ReqType = Type;
int USB_int_SendSetupSetAddress(tUSBHost *Host, int Address)
{
- USB_int_Request(&Host->RootHubDev, 0, 0x00, 5, Address & 0x7F, 0, 0, NULL);
+ USB_int_Request(Host->RootHubDev, 0, 0x00, 5, Address & 0x7F, 0, 0, NULL);
return 0;
}
dest_hdl = Dev->EndpointHandles[Endpoint];
if( !dest_hdl ) {
- dest_hdl = Dev->Host->HostDef->InitControl(Dev->Host->Ptr, Dev->Address*16 + Endpoint);
- Dev->EndpointHandles[Endpoint] = dest_hdl;
+ return -1;
}
ENTER("pDev xEndpoint iType iIndex iLength pDest",