I am using the mqx usb device stack for my usb application, I have used on chip usb otg controller and have connected the Vbus pin to IRQ6 pin of processor mcf54418 .
I have initialized the ISR for IRQ6 pin and on plugging in the USB connector, I get the VBUS interrupt and control goes to the ISR function as expected.
My question is, how to indicate this to the processor that a valid VBUS is available ? What bits in which register needs to be changed for this ?
After this, I suppose that I need to pull up the D+ pin so that the Host can send the reset signal and begin enumaration process.
Please let me know if I am missing something.
Thank you for your time.