jtag: adapter: rework adapter related commands
currently we have different types of same command group: - starting with adapter_* - starting with interface* - without adapter or interface prefix. Since interface name is already used, we can only use "adapter" command group by keeping old commands as well. Change-Id: Id0a1cb63a2ea6860c67ae1e7a3a06a37ddf464f4 Signed-off-by: Oleksij Rempel <o.rempel@pengutronix.de> Reviewed-on: http://openocd.zylin.com/4774 Reviewed-by: Marc Schink <dev@zapb.de> Tested-by: jenkins Reviewed-by: Antonio Borneo <borneo.antonio@gmail.com> Reviewed-by: Oleksij Rempel <linux@rempel-privat.de>
This commit is contained in:
committed by
Oleksij Rempel
parent
e7e681ac2b
commit
5280eb618a
@@ -120,18 +120,18 @@ proc jtag_ntrst_assert_width args {
|
||||
# FIXME phase these aids out after about April 2011
|
||||
#
|
||||
proc jtag_khz args {
|
||||
echo "DEPRECATED! use 'adapter_khz' not 'jtag_khz'"
|
||||
eval adapter_khz $args
|
||||
echo "DEPRECATED! use 'adapter speed' not 'jtag_khz'"
|
||||
eval adapter speed $args
|
||||
}
|
||||
|
||||
proc jtag_nsrst_delay args {
|
||||
echo "DEPRECATED! use 'adapter_nsrst_delay' not 'jtag_nsrst_delay'"
|
||||
eval adapter_nsrst_delay $args
|
||||
echo "DEPRECATED! use 'adapter srst delay' not 'jtag_nsrst_delay'"
|
||||
eval adapter srst delay $args
|
||||
}
|
||||
|
||||
proc jtag_nsrst_assert_width args {
|
||||
echo "DEPRECATED! use 'adapter_nsrst_assert_width' not 'jtag_nsrst_assert_width'"
|
||||
eval adapter_nsrst_assert_width $args
|
||||
echo "DEPRECATED! use 'adapter srst pulse_width' not 'jtag_nsrst_assert_width'"
|
||||
eval adapter srst pulse_width $args
|
||||
}
|
||||
|
||||
proc jtag_reset args {
|
||||
@@ -176,4 +176,39 @@ proc stlink args {
|
||||
eval hla $args
|
||||
}
|
||||
|
||||
proc adapter_khz args {
|
||||
echo "DEPRECATED! use 'adapter speed' not 'adapter_khz'"
|
||||
eval adapter speed $args
|
||||
}
|
||||
|
||||
proc adapter_name args {
|
||||
echo "DEPRECATED! use 'adapter name' not 'adapter_name'"
|
||||
eval adapter name $args
|
||||
}
|
||||
|
||||
proc adapter_nsrst_delay args {
|
||||
echo "DEPRECATED! use 'adapter srst delay' not 'adapter_nsrst_delay'"
|
||||
eval adapter srst delay $args
|
||||
}
|
||||
|
||||
proc adapter_nsrst_assert_width args {
|
||||
echo "DEPRECATED! use 'adapter srst pulse_width' not 'adapter_nsrst_assert_width'"
|
||||
eval adapter srst pulse_width $args
|
||||
}
|
||||
|
||||
proc interface args {
|
||||
echo "DEPRECATED! use 'adapter driver' not 'interface'"
|
||||
eval adapter driver $args
|
||||
}
|
||||
|
||||
proc interface_transports args {
|
||||
echo "DEPRECATED! use 'adapter transports' not 'interface_transports'"
|
||||
eval adapter transports $args
|
||||
}
|
||||
|
||||
proc interface_list args {
|
||||
echo "DEPRECATED! use 'adapter list' not 'interface_list'"
|
||||
eval adapter list $args
|
||||
}
|
||||
|
||||
# END MIGRATION AIDS
|
||||
|
||||
Reference in New Issue
Block a user