Need inputs for USB HID keyboard + LPC1837

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Need inputs for USB HID keyboard + LPC1837

1,001 Views
gvk51
Contributor III

Hi Folks,

I have LPC1837 development board, It is loaded with USBDemo firmware, I am able to build the source shared and flash it device. Its working fine.

 

I am working to modify the USB0 (Mass Storage Functionality) to HID Keyboard. I need some inputs for proceeding further.

I realized that there is no device configuration descriptor for USB _HID device, I have created one, which looks as below

typedef struct {

  USB_Descriptor_Configuration_Header_t Config;

  USB_Descriptor_Interface_t         Kbd_Interface;

  USB_HID_Descriptor_HID_t Kbd_Desc;

  USB_Descriptor_Endpoint_t Kbd_EndPoint;

}USB_Descriptor_Configuration_HidKbd_t; Please correct me if there is anything wrong with this piece of code.

 

How to use HID_DESCRIPTOR_KEYBOARD, defined in HidClassCommon.h, and what has to be done in the Callback function CreateHIDReport. Here in this means of implementation, I could not see where we pass the HID_DESCRIPTOR_KEYBOARD.

 

My requirement is to have a audio device on USB-1 and HID Keyboard on USB-0

 

Please give your inputs.

 

Thanks.

Labels (3)
0 Kudos
Reply
3 Replies

648 Views
lpcware
NXP Employee
NXP Employee
bump
0 Kudos
Reply

648 Views
gvk51
Contributor III

No Worries, I am able to do it. Thanks

0 Kudos
Reply

648 Views
gvk51
Contributor III

Thanks for the response, Please let me know in details what exactly you mean.

0 Kudos
Reply