openocd/src/jtag/aice
Paul Fertser 487c57d9a2 libusb: introduce jtag_libusb_choose_interface() and use it for JLink
This introduces a new common function that allows auto-discovery of a
suitable USB interface based on class, subclass and protocol
matching. It claims the interface and returns the corresponding
endpoints number to the caller.

The need for this arised due to nRF51822 USB dongle which comes with
an "on-board Segger J-link debugger" having 3 interfaces, so the
current code can't work at all with it (in this particular case the
last interface needs to be choosen). This also removes special
handling of JLink-OB endpoint numbers as it's now possible to
autodetect them as well as the standard JLink endpoints.

Change-Id: I4d990a7a3b373efdd2949a394b32d855a168e138
Signed-off-by: Paul Fertser <fercerpav@gmail.com>
Reviewed-on: http://openocd.zylin.com/2327
Tested-by: jenkins
Reviewed-by: Spencer Oliver <spen@spen-soft.co.uk>
2014-10-06 18:40:39 +00:00
..
aice_interface.c jtag: constify driver arrays 2014-10-06 11:57:36 +00:00
aice_interface.h jtag: constify driver arrays 2014-10-06 11:57:36 +00:00
aice_pipe.c Conform to C99 integer types format specifiers 2014-01-15 12:40:42 +00:00
aice_pipe.h aice: add Andes AICE support 2013-06-05 19:27:23 +00:00
aice_port.c aice: add Andes AICE support 2013-06-05 19:27:23 +00:00
aice_port.h jtag: constify driver arrays 2014-10-06 11:57:36 +00:00
aice_transport.c Clean up const usage to avoid excessive casting 2013-10-31 20:42:34 +00:00
aice_transport.h aice: add Andes AICE support 2013-06-05 19:27:23 +00:00
aice_usb.c libusb: introduce jtag_libusb_choose_interface() and use it for JLink 2014-10-06 18:40:39 +00:00
aice_usb.h Conform to C99 integer types format specifiers 2014-01-15 12:40:42 +00:00
Makefile.am libusb: require pkg-config support 2013-09-13 21:43:18 +00:00