Self Powered USB / VBUS / ST HAL / VCP STM32L151 how to activate
Can anyone tell me how to activate (which function must I run) the USB if I detect a VBUS on my EXTI Interrupt.
My STM32L151 is externally Powered. I activated the SELF_POWERED function in CUBEMX.
I monitor the VBUS on an external Interrupt (rising edge). If the interrupt fires I want to activate USB. BUT I dont know how :beaming_face_with_smiling_eyes:. MX_USB_DEVICE_Init(); Seems to be already called by CUBEMX in the initialization. Which functions do I need to call? What functions do I need to STOP USB?
Thank You
