On Sun, Jun 23, 2013 at 11:20 PM, Paul Fertser <[email protected]> wrote: > On Sun, Jun 23, 2013 at 11:00:04PM +0800, Xiaofan Chen wrote: >> Take note there is no libusb-compat under Windows, only >> libusb-win32. > > Eh, now that's strange. I was sure libusb-compat is a thin emulation > layer to allow using libusb-0.1 API by translating them to libusb-1.x > calls, so I wasn't aware of any reasons it might not work under > windows. > > I had high hopes for libusb-compat. Why doesn't it work on windows?
Yes libusb-compat can work under Windows after some tweaking on the build script. But then again it will only support libusb-0.1 API and it will not support the async API extension and isochronous transfer which already exist in libusb-win32. So I doubt it makes much sense to offer libusb-compat under Windows. Take note libusb-win32 provides libusb-0.1 API plus a few Windows only extensions, including its own async API and isochronous transfer. >> An option is to use libusbK driver (Zadig supports WinUSB, >> libusbK and libusb-win32 device driver) which will work for >> both libusb-win32 and libusb-1.0/libusbx. > > Hmm... Actually libusbx can use WinUSB, libusbk.sys and libusb-win32 driver, the only problem is that the support of libusb-win32 driver is a bit problematic right now, especially for composite device. libusbx' support of libusbk driver may not be as mature as WinUSB but so far I have not encountered any real problems. More info about WinUSB driver, libusbK driver and libusb-win32 driver comparison: http://libusbk.sourceforge.net/UsbK3/usbk_comparisons.html WinUSB driver can work with libusbx/libusb-1.0 API and native Windows only WinUSB API. libusbK driver can work with libusb-win32 API, libusbx/libusb-1.0 API and native Windows only libusbK API. libusb-win32 driver can work with libusb-win32 API, libusbx/libusb-1.0 API (but currently unstable for some use cases), it will work with libusbK API as well. -- Xiaofan ------------------------------------------------------------------------------ This SF.net email is sponsored by Windows: Build for Windows Store. http://p.sf.net/sfu/windows-dev2dev _______________________________________________ OpenOCD-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/openocd-devel
