Atmel website | ARM Community | AVR freaks | Technical Support
Banner
 FAQ •  Search •  Register •  Login 

All times are UTC + 1 hour [ DST ]




Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: How to create a HID Gadget
PostPosted: Mon Mar 05, 2012 3:38 am 
Offline

Joined: Sat Mar 03, 2012 12:55 pm
Posts: 1
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


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to: