How to add code to HAL_PCD_ConnectCallback ?
I want to implement a callback for USB connection / disconnection.
I see that CubeMX generates HAL_PCD_ConnectCallback, as __weak in file stm32f7xx_hal_pcd.c, but the problem is that it's already defined in file usbd_conf.c. And there's no option for user code there. So how can I add my code to this callback?
Thanks