USB OTG Controller
Figure 51.
OTG Driver Switch Handler
OTG driver switch handler
OTG_CTRL.DRIVER_S
EL = 0?
No
Initialize the USB device
controller
Inform application that USB
device driver is selected
Write 1 to OTG_IRQ_SRC.15 to
clear the interrupt source
End of OTG driver switch
handler
232
Universal Serial Bus (USB)
OTG_CTRL.ID = 1?
Yes
Set OTG_CTRL.A_BUSREQ
Initialize the USB host
Inform application that USB host
driver is selected
No
Yes
to 1
controller port
SPRU761A