How can I detect if a USB cable is plugged in? I have a FAT file system and a USB MSC both sharing the same SD card. I want to only enable the MSC (and disable FAT) at startup if a USB cable is connected. USB 5V is not connected directly to the K24F I am using.
How can I do this?
Thanks in advance...