View previous topic :: View next topic |
Author |
Message |
freesat
Joined: 08 Feb 2011 Posts: 32
|
USB Composite Device |
Posted: Mon Aug 11, 2014 4:15 pm |
|
|
Hi Guys,
Im trying to make a USB composite device, but i have no success at this moment, a simple/single device i have no problems.
Does anyone have a working sample code with usb descriptor to share? or can tell me how can i do that?
Im planing to make a single device with multiple interfaces ( Keyboard + Mouse + Joystick ) for use with arcade machine.
thanks... |
|
|
Ttelmah
Joined: 11 Mar 2010 Posts: 19513
|
|
Posted: Mon Aug 11, 2014 11:19 pm |
|
|
You have looked at the kbmouse examples?,. |
|
|
freesat
Joined: 08 Feb 2011 Posts: 32
|
|
Posted: Tue Aug 12, 2014 9:57 pm |
|
|
Hi Ttelmah,
i come back justo to say thanks, you realy point right direction.
i have build a composite device with mouse, keyboard and 2 joysticks, and it works very well.
Thanks! |
|
|
temtronic
Joined: 01 Jul 2010 Posts: 9226 Location: Greensville,Ontario
|
|
Posted: Wed Aug 13, 2014 5:24 am |
|
|
You should consider adding your program to the 'code library' here. I'm sure others would appreciate seeing it as everything is USB these days.
jay |
|
|
Ttelmah
Joined: 11 Mar 2010 Posts: 19513
|
|
Posted: Thu Aug 14, 2014 1:13 am |
|
|
I have to say 'thanks for coming back'.
It is a big 'problem' with CCS in general, that the documentation is rather 'haphazard'.
The examples are really a core part of the documentation, but they are only properly documented 'inside themselves'. So it is not (for example) obvious unless you have done it, or read the comments in the files, that the kbmouse examples are for a composite 'keyboard/mouse' device.
On CCS, you need to look at (not necessarily in this order):
1) The help file.
2) The data sheet for the device involved.
3) Kernighan & Ritchie (rather than many of the online references).
4) The readme in the compiler directory for latest changes.
5) Fuses.txt (to have a hope of working out the CCS names).
6) The include file for the processor.
7) The examples.
8) Here.
Not exactly a 'single well organised' help... |
|
|
|