I have a USB composite device that comprises of a serial port and a mass storage device that allows me to read/write directly to a SD card attached to my stellaris board. I would like to be able to enable/disable the mass storage device on the fly.. while keeping serial constant.
I have tried to use the USBDMSCTerm function to stop the MSC device but it stops serial working as well which cannot happen for my application.. I'm currently adding the MSC device to my composite device as so
g_psCompDevices[0].pvInstance =
USBDMSCInit(0, (tUSBDMSCDevice *)&g_sMSCDevice);