RT-1064 USB Host Stack teardown and init for Host Device Role switch example

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

RT-1064 USB Host Stack teardown and init for Host Device Role switch example

681 Views
k2
Contributor III

wondering what calls can be made to dynamically teardown the host controller and init a device controller using the same controller. I see deinit calls ... Are there any examples anywhere.

In the older LPC Expresso it was pretty easy to implement this. 

Labels (1)
0 Kudos
1 Reply

667 Views
FelipeGarcia
NXP Employee
NXP Employee

Hi,

You can use USB_HostDeinit API, for example in the source code attached I used this API to disable host controller, the example starts using Ehci0 controller but changes to Ehci1 if you press SW8. Maybe you can use this code as reference but enabling device instead of host.

Best regards,

Felipe

0 Kudos