Resolved! How to sleep when USB_VBUS on stm32f105 is low?
I have a self-powered device. It appears as a USB CDC device /dev/ttyACM0, when plugged into a Linux host. The device port is wired to USB_VBUS, so that pin will only be high when connected to a USB host.I would like to detect the presence of the U...