Hello Erant

I also have problems whit the current at91_usb. I try to bring an old running eCOS firmware to the actual eCOS-version. The first thing i found was, that the enumeration writes the last endpoint-desctipoter twice. The patch for this is:
usbs.c:
   if (done) {
       endpoint->fill_buffer_fn = (void (*)(usbs_control_endpoint*)) 0;
++        endpoint->buffer_size = 0;
   } else {
       req->type       = (unsigned char) current_interface;
       req->value_lo   = (unsigned char) current_endpoint;
       req->value_hi   = (unsigned char) last_endpoint;
       req->index_hi   = (unsigned char) (sent >> 8);
       req->index_lo   = (unsigned char) (sent & 0x00FF);

I use fprintf and fgetc for writing and reading from bulk-endpoints. The fprintf works great as ever, but the fgetc is broken. So if You find some problem in the driver i would like to know...

Regards Oliver


--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss

Reply via email to