2023-03-21 05:19 AM
I am using Nucleo-STM32 F767ZI board. I am to using interrupt transfer for sending data to PC(Host). But data is not getting displayed on game pad. When I use the USBD_CUSTOM_HID_SendReport() function inside while(1) loop. it sends data and it gets displayed on game controller window. I want to send data using interrupt method and at time interval mentioned in CUSTOM_HID_FS_BINTERVAL, not in main() while loop. What steps I have to follow and where to write the function to make it work?