I am following this composite device sample to create 2 hid interface.
LPCOpen-keil-lpc43xx/main.c at master · micromint/LPCOpen-keil-lpc43xx · GitHub
Hope it works.
Thanks.
Sam
Hi Sam Chen,
How is going on about this issue?
Have a great day,
TIC
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------
It works for me to invoke usb_hid_init twice with difffer interface description like this.
ret = usb_hid_init(g_hUsb,
(USB_INTERFACE_DESCRIPTOR *) &USB_FsConfigDescriptor[sizeof(USB_CONFIGURATION_DESCRIPTOR)],
&usb_param.mem_base,
&usb_param.mem_size);
ret = usb_hid_btn_init(g_hUsb,
&USB_FsConfigDescriptor[sizeof(USB_CONFIGURATION_DESCRIPTOR) + USB_INTERFACE_DESC_SIZE + HID_DESC_SIZE + 2*USB_ENDPOINT_DESC_SIZE ],
&usb_param.mem_base,
&usb_param.mem_size);
Thanks
Sam