public inbox for ecos-devel@sourceware.org
 help / color / mirror / Atom feed
* Changing the USB-driver datas... Using an array: usb_working_endpoint ep[ENDPOINTS-1]
@ 2006-02-07  0:02 oliver munz @ s p e a g
  2006-06-02 15:22 ` Frank Pagliughi
  0 siblings, 1 reply; 2+ messages in thread
From: oliver munz @ s p e a g @ 2006-02-07  0:02 UTC (permalink / raw)
  To: ecos-devel

I think the eCos-USB-slave endpoint data structures should be changed. The 
USB-slave-package should define one struct for all endpoint types whitout 
the control-endpoint.

The device-driver should define an array of all working endpoint-structs 
ep1..n. All enndpoint-functions should get an index variable, so that they 
can address the right struct from the array.

The device-driver and the USBS-interface should define a function to control 
the type and state of an working endpoint.

I don't see any reason in using blabla_ep1(&ep1) and so on, instead of 
something like blabla_ep(ep_array, 1);

Are there other ideas how to improve the USBS and USB-driver APIs?



Thanks
Oliver Munz 

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2006-06-02 15:22 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-02-07  0:02 Changing the USB-driver datas... Using an array: usb_working_endpoint ep[ENDPOINTS-1] oliver munz @ s p e a g
2006-06-02 15:22 ` Frank Pagliughi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).