We want to reset the USB controller at run time. The USB acts as a device.
Right now, we are using the following Code to reset the USB controller.
EALLOW;
CpuSysRegs.PCLKCR11.bit.USB_A = 0; //disable usb peripheral clock
EDIS;
DELAY_US(500);
EALLOW;
CpuSysRegs.PCLKCR11.bit.USB_A = 1; // enable usb peripheral
EDIS;
is it right way to reset the USB controller ? or do we have any API to reset the USB communication. please provide your suggestions.
Thanks,
Rajkumar