On Tuesday 09 February 2010 04:51:28 Jie Zhang wrote: > On 02/08/2010 11:02 PM, Jie Zhang wrote: > > Hi, > > > > I have ported libftdi to libusb-1.0. The work is hosted in the following > > repository: > > > > git://developer.intra2net.com/libftdi-1.0 > > > > My work brought asynchronous transfer to libftdi. I explained how this > > would help UrJTAG in this email: > > > > http://developer.intra2net.com/mailarchive/html/libftdi/2010/msg00065.htm > >l > > > > Now I propose a patch for UrJTAG to use this new libftdi to improve the > > performance. When using the new libftdi, gdbproxy reads memory at about > > 110.2KB/s. Compared with previous 10.3KB/s, I would say it's a big > > improvement. > > > > This UrJTAG patch, which is attached in this email, does not change the > > default settings. But it changes --with-libusb to to accept "1.0" and > > "0.1". This patch also checks if libftdi is the new one. It will check > > if the combination of libusb version and libftdi version is good. For > > example, libusb-1.0 cannot be used with the old libftdi. libusb-0.1 > > cannot be used with the new libftdi. It changes usbconn_ftdi_flush to > > utilize the asynchronous mode of the new libftdi. So we can enlarge the > > receive buffer to (63 * 64). See the email on the above URL for further > > explanation. > > > > Since this patch does not change the default settings of UrJTAG, it's > > not intrusive. I'm going to commit it in 24 ~ 48 hours if no one objects. > > Here is an update of the patch. The new patch will error out when the > specified libusb does not exist. Otherwise, it's same as previous one.
the autotool logic should be a bit smarter -- default to libusb-1.0 and fall back to libusb-0.1 ... -mike
signature.asc
Description: This is a digitally signed message part.
------------------------------------------------------------------------------ The Planet: dedicated and managed hosting, cloud storage, colocation Stay online with enterprise data centers and the best network in the business Choose flexible plans and management services without long-term contracts Personal 24x7 support from experience hosting pros just a phone call away. http://p.sf.net/sfu/theplanet-com
_______________________________________________ UrJTAG-development mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/urjtag-development
