- 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