Hi all,
Thanks for your contineous support from this site.
I want to detect my board as HID mouse when plugged to USB port of PC. For that I guess I need to write HID mouse driver.
I am using LPC2148 controller. Can i gett some reference code for it?
Thanks & Regards, Kamal
Tsuneo,
I'm soon going to be looking at USB on ARM.
Thank you so much for those links - Some very good bedtime reading :)
> Can i gett some reference code for it?
Implementation of keyboard and mouse is a good exercise for USB starters to learn Class implementation, because HID spec documents on keyboard and mouse well.
HID spec v1.11 www.usb.org/.../HID1_11.pdf - Appendix E: Example USB Descriptors for HID Class Devices (p66) - Appendix B.2 Protocol 2 (Mouse) (p61)
Starting with a HID example which fits to your compiler,
- LPC2148 USB HID (Human Interface Device) Example - MDK-ARM http://www.keil.com/download/docs/306.asp
- LPCUSB - GNU ARM (YAGARTO, etc) sourceforge.net/.../
Modification of 40-50 lines of its source code (including 26 lines of report descriptor) makes your board a mouse.
If you want to learn on USB, I'll guide you.
Tsuneo
View all questions in Keil forum