|
Hello,
I want to turn a Stamp9G20 into an HID device. I need to stream about 2MB/s of numeric data to a Windows PC so I can't use the serial gadget. I am using the Linux kernel 2.6.39, have added USB Gadget support and have included HID Gadget support options in the kernel.
I wrote a kernel module that follows the instructions in gadget_hid.txt in the kernel documentation. I copied the platform_device and hidg_func_descriptor structures from the gadget_hid file and am calling platform_device_register(...) in my module's init function. The module is loaded OK but I still cannot see a /dev/hidg0 as expected.
Does udev need to be configured to make the device? Am I correct in building a kernel object (.ko) file to register my platform device?
Many thanks, Peter
|