This is the mail archive of the ecos-patches@sourceware.org mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: USB serial package


Andrew Lunn wrote:
I tested this with the AT91SAM7S-EK board as the device target, but it should work with any USB-enabled eCos board.

Hi Frank


Thanks for the code. I will take a look at it over the weekend.

You said in a previous email that the AT91 USB driver was broken, its
state transition indications pass the wrong values. Do you have a fix
for that? Does this serial driver depend on the fix?

    Thanks
        Andrew

Hello Andrew,

The submitted USB-serial driver works works with the existing AT91 USB driver and will also work with a "fixed" one. It simply looks at the "state" values rather than the "state change values".

Sorry I haven't gotten to the AT91 USB driver yet. The main problem with the state change stuff is where the "state" enumerations differ from the "state change" enumerations. The "state change" has things like
USBS_STATE_CHANGE_CONFIGURED // Same as USBS_STATE_CONFIGURED
USBS_STATE_CHANGE_DECONFIGURED // No direct, equivalent state


The "deconfigured" change is a convenient trigger for these types of USB apps and modules, but this is easy enough to work around by looking at the new state (and maybe the old one) in the module.

I'm working on another USB driver at the moment (Philips/NXP ISP1181), and it will have the same issue of state/state change, so I was looking at perhaps making a common solution for them - which has caused the delay.

But again, the submitted USB-serial code will work with the existing USB driver(s).


- Frank


P.S. I'll be working this weekend, as well, so feel free to contact me with any questions.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]