From caf4bb21fb9f2d9b077384da0d94c4227066fde9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Arnim=20L=C3=A4uger?= Date: Sat, 17 Nov 2007 21:39:51 +0000 Subject: [PATCH] report cable usage for USB & FTDI based cables only in case respective support is included git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@772 b68d4a1b-bc3d-0410-92ed-d4ac073336b7 --- jtag/src/cmd/cable.c | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/jtag/src/cmd/cable.c b/jtag/src/cmd/cable.c index 42644233..968b76f8 100644 --- a/jtag/src/cmd/cable.c +++ b/jtag/src/cmd/cable.c @@ -85,21 +85,34 @@ cmd_cable_help( void ) printf( _( "Usage: %s PORTADDR CABLE\n" "Usage: %s DEV CABLE\n" +#ifdef HAVE_LIBFTDI "Usage: %s VID:PID:S/N CABLE\n" "Usage: %s VID:PID:S/N CABLE\n" +#endif +#ifdef HAVE_LIBUSB "Usage: %s VID:PID:S/N CABLE\n" +#endif "Select JTAG cable connected to parallel port.\n" "\n" "PORTADDR parallel port address (e.g. 0x378)\n" "CABLE cable type\n" +#if defined HAVE_LIBUSB || defined HAVE_LIBFTDI "DEV ppdev device (e.g. /dev/parport0)\n" "VID empty or USB vendor ID, hex (e.g. 09FB)\n" "PID empty or USB product ID, hex (e.g. 6001)\n" "S/N empty or USB product serial number, ASCII\n" +#endif "\n" "List of supported cables:\n" "%-13s No cable connected\n" - ), "cable parallel", "cable ppdev", "cable ftdi", "cable ftdi-mpsse", "cable xpcu", "none" ); + ), "cable parallel", "cable ppdev", +#ifdef HAVE_LIBFTDI + "cable ftdi", "cable ftdi-mpsse", +#endif +#ifdef HAVE_LIBUSB + "cable xpcu", +#endif + "none" ); for (i = 0; cable_drivers[i]; i++) printf( _("%-13s %s\n"), cable_drivers[i]->name, _(cable_drivers[i]->description) );