Is it possible to force the USB into host mode using the function USBHostMode located in usb.c? From the comments in the code it appears this is not possible. See comments below.
* This function changes the mode of the USB controller to host mode. This
* is only valid on microcontrollers that have the host and device
* capabilities and not the OTG capabilities.
Hi Brad,The current implementation of the USB Stack is as per TRM (spruh73a.pdf) section ‘16.3.1’ and ‘16.3.7’, the controller assumes host mode when DRVVBUS is driven high using EPC register OR DEVCTL bit is set.Please refer to the functions 'USBHostPwrEnable' and 'USBOTGSessionRequest' and 'USBHCDInitInternal' functions.‘USBHostMode’ is currently not used in our stack. This is carried over from legacy code and we will remove it.RegardsSirish
All content and materials on this site are provided "as is". TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with regard to these materials, including but not limited to all implied warranties and conditions of merchantability, fitness for a particular purpose, title and non-infringement of any third party intellectual property right. TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with respect to these materials. No license, either express or implied, by estoppel or otherwise, is granted by TI. Use of the information on this site may require a license from a third party, or a license from TI.
TI is a global semiconductor design and manufacturing company. Innovate with 100,000+ analog ICs andembedded processors, along with software, tools and the industry’s largest sales/support staff.