Question
USB Device Connection and Disconnection
STM32F4 is working in USB Device MSC mode successfully.
I need to detect the USB connection state. I put the HAL_PCD_ConnectCallback function in main.c but on compiling I received warning.
Debug/../USB_DEVICE/Target/usbd_conf.c:307: multiple definition of `HAL_PCD_ConnectCallback';
I see it is weak in HAL_PCB_IRQHandler. Please suggest what I am missing.
