diff options
author | Antonio Borneo <borneo.antonio@gmail.com> | 2021-10-07 23:03:23 +0200 |
---|---|---|
committer | Antonio Borneo <borneo.antonio@gmail.com> | 2021-11-28 10:59:23 +0000 |
commit | 61a2f3284b984abee0ffd1166ecd79a0ea82976e (patch) | |
tree | 4388d01d56aae63a5da2a30e1ea39996b9407ad5 /src/jtag/startup.tcl | |
parent | 271e5416af975b52d4cd0e2ced65a4cbda9d041f (diff) | |
download | riscv-openocd-61a2f3284b984abee0ffd1166ecd79a0ea82976e.zip riscv-openocd-61a2f3284b984abee0ffd1166ecd79a0ea82976e.tar.gz riscv-openocd-61a2f3284b984abee0ffd1166ecd79a0ea82976e.tar.bz2 |
jtag/xds110: switch to command 'adapter serial'
The driver xds110 defines the command 'xds110 serial' to specify
the serial string of the adapter.
Remove and deprecate the driver command, and use 'adapter serial'.
Note: the original command 'xds110 serial' used a complex and
undocumented conversion of the serial number through multibyte
string, wide-character string and C cast. The XDS110 I can access
and the lsusb dumps available through Google don't show any
exotic USB serial that require such conversion. The original
developer doesn't remember any constraint that mandates such
conversion (see comments in https://review.openocd.org/4322/).
The conversion is removed by this patch.
Change-Id: I38909918079b2c1797ad85ebec2fea1b33743606
Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com>
Reviewed-on: https://review.openocd.org/c/openocd/+/6655
Reviewed-by: Tomas Vanek <vanekt@fbl.cz>
Tested-by: jenkins
Diffstat (limited to 'src/jtag/startup.tcl')
-rw-r--r-- | src/jtag/startup.tcl | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/jtag/startup.tcl b/src/jtag/startup.tcl index 95fe55c..d6c3b85 100644 --- a/src/jtag/startup.tcl +++ b/src/jtag/startup.tcl @@ -187,8 +187,8 @@ proc ftdi_location args { lappend _telnet_autocomplete_skip xds110_serial proc xds110_serial args { - echo "DEPRECATED! use 'xds110 serial' not 'xds110_serial'" - eval xds110 serial $args + echo "DEPRECATED! use 'adapter serial' not 'xds110_serial'" + eval adapter serial $args } lappend _telnet_autocomplete_skip xds110_supply_voltage @@ -777,4 +777,10 @@ proc "vsllink usb_serial" {args} { eval adapter serial $args } +lappend _telnet_autocomplete_skip "xds110 serial" +proc "xds110 serial" {args} { + echo "DEPRECATED! use 'adapter serial' not 'xds110 serial'" + eval adapter serial $args +} + # END MIGRATION AIDS |