Determine USB-cable connected/disconnected status and transmit-in-progress status without being dependent on interrupts?
I'm working with the Nucleo-64 development board with an STM32L476 microcontroller and I'm using the USB source code that STM32CubeMX has generated for me. In my project the peripheral interrupts have the same priority as OTG_FS_IRQHandler and hence,...