I am trying to do a simple USB initialization using modified code from the OMAP StartWare package. However, my USB connection is not being recognized when I connect to a PC. I would have expected the PC to detect a new USB connection and as for the .inf file. This is not happening.
Here is my code.
void USB_init()
{
//
// Not configured initially.
//
g_bUSBConfigured = false;
//
//Setup the AINT Controller
//
SetupAINTCInt();
//
//Configure the AINTC controller for USB
//
ConfigureIntUSB();
//
//Initialize the Rx and TX Buffers
//
USBBufferInit((tUSBBuffer *)&g_sTxBuffer);
USBBufferInit((tUSBBuffer *)&g_sRxBuffer);
//
// Pass our device information to the USB library and place the device
// on the bus.
//
USBDCDCInit(0, (tUSBDCDCDevice *)&g_sCDCDevice);
//
// Clear our local byte counters.
//
ulRxCount = 0;
ulTxCount = 0;
}
Again, I have cobbled this together from the example given in the StartWare package (C:\Program Files (x86)\Texas Instruments\OMAPL138_StarterWare_1_10_00_00\examples\evmOMAPL138\usb_dev_serial).
Is there something obvious that I am doing wrong?