In mdk4.20, the usb device hid class has 3 functions:
extern void usbd_hid_init (void); extern void usbd_hid_getinreport (U8 *buf); extern void usbd_hid_setoutreport (U8 *buf);
Problem is usbd_hid_getinreport is called continously, thus I must send back some bytes to host, what to do if there is no data avilable (e.g. key press) for the host?
Thanks.
Any thoughts on this? I'm having the same issue.