Hi,
based on example lpcxpresso55s16_dev_composite_hid_mouse_hid_keyboard_freertos, I modify it to as HID keyboard + HID generic.
When I got keyscan, I use
USB_DeviceHidSend(s_UsbDeviceComposite->hidKeyboardHandle, USB_HID_KEYBOARD_ENDPOINT_IN, s_UsbDeviceHidKeyboard.buffer, USB_HID_KEYBOARD_REPORT_LENGTH);
to send key packet, but it continue to send key packet and won't stop.
For example, keyscan got 'b', and use USB_DeviceHidSend() to send HID packet,
but the PC continue to receive 'bbbbbbbb' for thousand times.
device[59] send 'b' report packet once, but device[61] continue to send.
I have commented the USB_DeviceHidKeyboardAction() in function USB_DeviceHidKeyboardCallback().
Solved! Go to Solution.
Hi,
I check the origin example lpcxpresso55s16_dev_composite_hid_mouse_hid_keyboard_freertos again,
it send HID packet 'a' just once. (I modify to send 'a' than pageup)
Why my code repeat to send HID packet? Anyone can guide me the direction to trace?