On Thu, Sep 11, 2014 at 04:01:33PM +0800, Xiaofan Chen wrote:
> 1738 /* usb_set_configuration required under win32 */
> 1739 struct jtag_libusb_device *udev = jtag_libusb_get_device(devh);
> +++ #if IS_WIN32 == 1
> 1740 jtag_libusb_set_configuration(devh, 0);
> +++ #endif
> 1741 jtag_libusb_claim_interface(devh, 0);

But what if libusbK driver will be made to work exactly like Linux's
generic usb code one day? Shouldn't it be possible to express the idea
"set the configuration if needed, but do not reset the device!" in
libusb-1.0 API in an OS-agnostic way? I personally would prefer to not
bother at all with libusb-0.1 specific issues. I do not see any issues
with libusb-win32 backend mentioned at [1], probably jlink will work
ok with it?

[1] https://github.com/libusb/libusb/wiki/Windows
-- 
Be free, use free (http://www.gnu.org/philosophy/free-sw.html) software!
mailto:[email protected]

------------------------------------------------------------------------------
Want excitement?
Manually upgrade your production database.
When you want reliability, choose Perforce
Perforce version control. Predictably reliable.
http://pubads.g.doubleclick.net/gampad/clk?id=157508191&iu=/4140/ostg.clktrk
_______________________________________________
OpenOCD-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openocd-devel

Reply via email to