Other Parts Discussed in Thread: OMAPL138
Hi,
We're using the OMAP-L138 and its USB OTG module.
Right now depending on the situation we would need the OMAP-L138 to act either as a USB host, or a USB device.
Both host and device code is working individually, and now I'm working on how to swap between the roles.
My main question is this, are there any close, deinitilization, or destructor methods that need to be called between configuring the USB OTG module as a different role?
The below example is a rough idea of what might be done to go from a USB device configuration, to a USB host configuration:
usb_dev_params.instanceNo = USB_DEV_INSTANCE; /* USB port # */
usb_dev_params.usbClassData = (void*)&g_sBulkDevice;
usb_host_params.instanceNo = USB_INSTANCE;
usb_handle = USB_open(usb_host_params.instanceNo, &usb_host_params);
// perform USB Host tasks
Any input on the situation would be helpful!
Thanks,
Ben