diff options
author | Antonio Borneo <borneo.antonio@gmail.com> | 2021-10-07 19:27:31 +0200 |
---|---|---|
committer | Antonio Borneo <borneo.antonio@gmail.com> | 2021-11-28 10:49:51 +0000 |
commit | 0343ae7cc734d8dfae17ff1ae9dbe834962f6da3 (patch) | |
tree | 8fa2239cc4905677259adc92b0fff98cc25a6a06 /src/jtag/adapter.h | |
parent | f66a16c4a06fde23ae25f39c92990aa049c3c970 (diff) | |
download | riscv-openocd-0343ae7cc734d8dfae17ff1ae9dbe834962f6da3.zip riscv-openocd-0343ae7cc734d8dfae17ff1ae9dbe834962f6da3.tar.gz riscv-openocd-0343ae7cc734d8dfae17ff1ae9dbe834962f6da3.tar.bz2 |
jtag/adapter: add command 'adapter serial'
Several adapter define their own command to specify the USB serial
number or serial string to be used during USB search.
Define a general command 'adapter serial' to be proposed as
replacement of the driver specific ones.
No driver is changed so far to use it.
Change-Id: I7631687a4163ccc63a9bdf3ad1fcb300fc483d3a
Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com>
Reviewed-on: https://review.openocd.org/c/openocd/+/6647
Reviewed-by: Tomas Vanek <vanekt@fbl.cz>
Tested-by: jenkins
Diffstat (limited to 'src/jtag/adapter.h')
-rw-r--r-- | src/jtag/adapter.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/jtag/adapter.h b/src/jtag/adapter.h index 8b73c0c..300769c 100644 --- a/src/jtag/adapter.h +++ b/src/jtag/adapter.h @@ -55,4 +55,7 @@ int adapter_config_rclk(unsigned int fallback_speed_khz); /** Retrieves the clock speed of the adapter in kHz. */ unsigned int adapter_get_speed_khz(void); +/** Retrieves the serial number set with command 'adapter serial' */ +const char *adapter_get_required_serial(void); + #endif /* OPENOCD_JTAG_ADAPTER_H */ |