I am trying to implement a custom USB device using TIVA C launchpad.
My requirement is two int endpoint (in & out) and two bulk endpoints(in & out). The config code is attached. The device fails to enumerate itself.
I find few problems to start with:
tDeviceInfo g_sDeviceInfo =
{
//
// Device event handler callbacks.
//
{
0, // GetDescriptor
0, // RequestHandler
0, // InterfaceChange
HandleConfigChange, // ConfigChange
0, // DataReceived
0, // DataSentCallback
HandleReset, // ResetHandler
0, // SuspendHandler
0, // ResumeHandler
HandleDisconnect, // DisconnectHandler
HandleEndpoints // EndpointHandler
},
g_pDeviceDescriptor,
g_pConfigDescriptors,
g_pStringDescriptors,
(unsigned long)(sizeof(g_pStringDescriptors) /
sizeof (unsigned char const *)),
};
On compilation I receive #1238-D excess initializers are ignored, with the callback structure.
Besides, in Tiva C, the USB device init requires tDCDInstance :
void USBDCDInit(uint32_t ui32Index, tDeviceInfo *psDevice, void *pvDCDCBData);
How can I initialize tDCDInstance to get pvDCDCBData?
Please help. Thanks in advance.
Deep.