usbconn: add interface option to usage

git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@1906 b68d4a1b-bc3d-0410-92ed-d4ac073336b7
master
Mike Frysinger 14 years ago
parent e863ac34f1
commit 82d5ff7174

@ -3,6 +3,9 @@
* src/tap/usbconn/libftdi.c (usbconn_ftdi_common_open): Use the new interface
option and call ftdi_set_interface with it. Patch by Michael Walle.
* src/tap/cable/generic_usbconn.h: Add new "interface" option to usage.
Patch by Michael Walle.
2011-04-30 Mike Frysinger <vapier@gentoo.org>
* configure.ac: Force recent versions of autotools (at least ones released

@ -43,11 +43,12 @@ void urj_tap_cable_generic_usbconn_help (urj_log_level_t ll, const char *cablena
void urj_tap_cable_generic_usbconn_help_ex (urj_log_level_t ll, const char *cablename,
const char *ex_short, const char *ex_desc);
#define URJ_TAP_CABLE_GENERIC_USBCONN_HELP_SHORT \
"[vid=VID] [pid=PID] [desc=DESC]"
"[vid=VID] [pid=PID] [desc=DESC] [interface=INTERFACE]"
#define URJ_TAP_CABLE_GENERIC_USBCONN_HELP_DESC \
"VID USB Device Vendor ID (hex, e.g. 0abc)\n" \
"PID USB Device Product ID (hex, e.g. 0abc)\n" \
"DESC Some string to match in description or serial no.\n"
"DESC Some string to match in description or serial no.\n" \
"INTERFACE Interface to use (0=first, 1=second, etc).\n"
#define URJ_DECLARE_USBCONN_CABLE(vid, pid, driver, name, cable) \
const urj_usbconn_cable_t urj_tap_cable_usbconn_##cable = { name, NULL, driver, vid, pid };

Loading…
Cancel
Save