Question
USB OTG device / host switching using USB 'ID' pin - example ?
I'm looking for an example showing how switching is done between 'host' and 'device' mode using the USB 'ID' pin.
The only 'dual role' example I have found requires the user to switch manually between these 2 roles (using joystick on eval board).
The USB peripheral in the MCU (STM32F407) seems to support automatic switching, but I cannot find any example of how to implement this.