USB cable detection
Posted on July 01, 2015 at 12:01 I use a custom STM32F407 board. I want to detect USB FS cable presence (no matter to pc or charger). Here is what I did. First, the VBUS pin is initialized in usb_bsp.c USB_OTG_BSP_Init function, I di...