Hi S S ,
To provide the fastest possible support, I'd like to suggest that you can refer to the USB ROM examples in the LPCOpen library, for instance, there's the code of the hid_mouse demo which is from the lpcopen_3_01_keil_iar_mcb_4357.
void Mouse_Tasks(void)
{
if ( USB_IsConfigured(g_mouse.hUsb)) {
if (g_mouse.tx_busy == 0) {
Mouse_UpdateReport();
g_mouse.tx_busy = 1;
USBD_API->hw->WriteEP(g_mouse.hUsb, HID_EP_IN, &g_mouse.report[0], MOUSE_REPORT_SIZE);
}
}
else {
g_mouse.tx_busy = 0;
}
}
Have a great day,
TIC
-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!
- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------