This is the mail archive of the
ecos-discuss@sourceware.org
mailing list for the eCos project.
Re: USB on the AT91SAM7S
- From: Frank Pagliughi <fpagliughi at mindspring dot com>
- To: andrew at lunn dot ch, ecos-discuss at ecos dot sourceware dot org
- Date: Mon, 03 Mar 2008 09:17:39 -0500
- Subject: Re: [ECOS] USB on the AT91SAM7S
- References: <47C82063.8060608@mindspring.com> <20080229153244.GA17619@lunn.ch> <47C83044.9000008@mindspring.com>
- All three of the general purpose endpoints are defined as
receivers (usbs_rx_endpoint). Not one transmitter.
It will look at the enumeration data and determine the direction of
the endpoints. What does your enumeration say?
Ah, so since they're binary compatible, the driver just overlays a
'usbs_tx_endpoint' over one of the defined 'usbs_rx_endpoint'
structures? So, say, if you define EP2 as IN (tx) then you can just cast
the struct like this:
usbs_tx_endpoint* tx_ep = (usbs_tx_endpoint*) &usbs_at91_ep2;
Is this correct?
Frank
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss