cancel
Showing results for 
Search instead for 
Did you mean: 

Virtual Com Port - Detect USB Disconnect

anbeyon2
Associate II
Posted on August 12, 2010 at 23:15

Virtual Com Port - Detect USB Disconnect

#stm32-usb

10 REPLIES 10
flyer31
Senior
Posted on March 25, 2012 at 15:42

If you use USB in device mode, it is quite easy: Just check the state of the bit USB_OTG_dev.regs.DREGS->DSTS (bit 0)