On Thu, Sep 11, 2014 at 12:50 PM, Xiaofan Chen <[email protected]> wrote: > > Actually easy, Option 3 is the best. You can remove the > libusb_set_configuration > under all OS (using libusb-1.0 API). The only time usb_set_configuration > is required is when using libusb-win32 under Windows (libusb-0.1 API). >
A bit more details here. Under Linux and Mac OS X, the set_configuration is not required since the driver already sets the default configuration and I believe all the current supported adapters are okay with the default configuration (very few device has two configurations). Under Windows, if using libusb-1.0 API, then the preferred driver is WinUSB and it does not support setting non-default configuration anyway. The other supported driver libusbK.sys is the same. Only libusb0.sys supports setting non-default configuration but it is not stable to be used with libusb (1.0 API). Under Winodws, if using libusb-0.1 API, then you use libusb-win32 which ships by default the libusb0.sys driver. It does require the use of usb_set_configuration, especially when using the filter driver mode (along side the original vendor driver). -- Xiaofan ------------------------------------------------------------------------------ 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
