Quantcast
Channel: Embedded Software (Read Only)
Viewing all articles
Browse latest Browse all 25965

Forum Post: RE: Can't get USB1 working as a device on custom design.

$
0
0
Hello Jeff, **************************Changes in Starterware USB library for USB1 As A Device*************************** 1) usbdenum.c file: USBDeviceEnumHandler() function : USBDReadAndDispatchRequest(0) --> USBDReadAndDispatchRequest(ulIndex); 2) usbdenum.c file: USBDeviceEnumHandler() function :USBDReadAndDispatchRequest(0) --> USBDReadAndDispatchRequest(ulIndex); 3) usbdenum.c file:: USBDSetConfiguration() function : USBDeviceConfig(0, psDevice->ppConfigDescriptors[pUSBRequest->wValue - 1], psDevice->psFIFOConfig); ---> USBDeviceConfig(ulIndex, psDevice->ppConfigDescriptors[pUSBRequest->wValue - 1], psDevice->psFIFOConfig); 4) usbdcdc.c file :HandleRequests() function : USBDCDRequestDataEP0(0, (unsigned char *)&psInst->sLineCoding, sizeof(tLineCoding)); ---> USBDCDRequestDataEP0(ulIndex, (unsigned char *)&psInst->sLineCoding, sizeof(tLineCoding)); 5) usbdcdc.c file :HandleRequests() function : USBDCDRequestDataEP0(0, (unsigned char *)&psInst->sLineCoding,sizeof(tLineCoding)); ---> USBDCDRequestDataEP0(ulIndex, (unsigned char *)&psInst->sLineCoding,sizeof(tLineCoding)); 6) Similarly Change in the HandleRequets( ) in usbdmsc.c amd usbdbulk.c Cheers Rama Krishna

Viewing all articles
Browse latest Browse all 25965

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>