From 20ceec69a2ca038847c6b4cf604f0b79cc004ba7 Mon Sep 17 00:00:00 2001 From: Oleksij Rempel Date: Fri, 16 Nov 2018 08:56:25 +0100 Subject: [PATCH] doc: add documentation for "adapter usb location" command Change-Id: Ia3fbe0c3894b1b96464bbfda5d4101123827b761 Signed-off-by: Oleksij Rempel Reviewed-on: http://openocd.zylin.com/4769 Tested-by: jenkins Reviewed-by: Tomas Vanek --- doc/openocd.texi | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/doc/openocd.texi b/doc/openocd.texi index 6c6dc9ca71..7f3a7ade10 100644 --- a/doc/openocd.texi +++ b/doc/openocd.texi @@ -2368,6 +2368,16 @@ the hardware can support. Returns the name of the debug adapter driver being used. @end deffn +@deffn Command {adapter usb location} :[.]... +Specifies the physical USB port of the adapter to use. The path +roots at @var{bus} and walks down the physical ports, with each +@var{port} option specifying a deeper level in the bus topology, the last +@var{port} denoting where the target adapter is actually plugged. +The USB bus topology can be queried with the command @emph{lsusb -t} or @emph{dmesg}. + +This command is only available if your libusb1 is at least version 1.0.16. +@end deffn + @section Interface Drivers Each of the interface drivers listed here must be explicitly -- 2.30.2