drivers/jtag_dpi: Group adapter commands

Use a command group 'jtag_dpi' with subcommands instead of individual
commands with 'jtag_dpi_' prefix.

The old commands are still available for backward compatibility but
marked as deprecated.

Change-Id: I19271546235a3c6737f975976a0bf0a2f66cbbe7
Signed-off-by: Marc Schink <dev@zapb.de>
Reviewed-on: http://openocd.zylin.com/6394
Tested-by: jenkins
Reviewed-by: Antonio Borneo <borneo.antonio@gmail.com>
This commit is contained in:
Marc Schink
2021-07-30 18:24:03 +02:00
committed by Antonio Borneo
parent 347af768ed
commit 08ce499f14
3 changed files with 28 additions and 5 deletions
+12
View File
@@ -309,6 +309,18 @@ proc parport_toggling_time args {
eval parport toggling_time $args
}
lappend _telnet_autocomplete_skip jtag_dpi_set_port
proc jtag_dpi_set_port args {
echo "DEPRECATED! use 'jtag_dpi set_port' not 'jtag_dpi_set_port'"
eval jtag_dpi set_port $args
}
lappend _telnet_autocomplete_skip jtag_dpi_set_address
proc jtag_dpi_set_address args {
echo "DEPRECATED! use 'jtag_dpi set_address' not 'jtag_dpi_set_address'"
eval jtag_dpi set_address $args
}
lappend _telnet_autocomplete_skip presto_serial
proc presto_serial args {
echo "DEPRECATED! use 'presto serial' not 'presto_serial'"