aboutsummaryrefslogtreecommitdiff
path: root/src/jtag/startup.tcl
diff options
context:
space:
mode:
authorSpencer Oliver <spen@spen-soft.co.uk>2012-10-24 09:52:00 +0100
committerSpencer Oliver <spen@spen-soft.co.uk>2012-12-23 21:45:42 +0000
commit6c467da586a42c8b1332670f2d5f27ae360a153f (patch)
tree1adbe7ae86ad40772afef467ae686e49d7ae527b /src/jtag/startup.tcl
parent549d9bc72cbca3ba352e6b4bcd6e31d9fd9a0bc7 (diff)
stlink: rename stlink cmd names
As part of the switch to using the hla for the stlink interface we rename the cmds to a more generic name. Update scripts to match new names. Also add handlers for deprecated names. Change-Id: I6f00743da746e3aa13ce06acfdc93c8049545e07 Signed-off-by: Spencer Oliver <spen@spen-soft.co.uk> Reviewed-on: http://openocd.zylin.com/921 Tested-by: jenkins
Diffstat (limited to 'src/jtag/startup.tcl')
-rw-r--r--src/jtag/startup.tcl26
1 files changed, 26 insertions, 0 deletions
diff --git a/src/jtag/startup.tcl b/src/jtag/startup.tcl
index 11a79779..4153118c 100644
--- a/src/jtag/startup.tcl
+++ b/src/jtag/startup.tcl
@@ -106,4 +106,30 @@ proc jtag_nsrst_assert_width args {
eval adapter_nsrst_assert_width $args
}
+# stlink migration helpers
+proc stlink_device_desc args {
+ echo "DEPRECATED! use 'hla_device_desc' not 'stlink_device_desc'"
+ eval hla_device_desc $args
+}
+
+proc stlink_serial args {
+ echo "DEPRECATED! use 'hla_serial' not 'stlink_serial'"
+ eval hla_serial $args
+}
+
+proc stlink_layout args {
+ echo "DEPRECATED! use 'hla_layout' not 'stlink_layout'"
+ eval hla_layout $args
+}
+
+proc stlink_vid_pid args {
+ echo "DEPRECATED! use 'hla_vid_pid' not 'stlink_vid_pid'"
+ eval hla_vid_pid $args
+}
+
+proc stlink args {
+ echo "DEPRECATED! use 'hla' not 'stlink'"
+ eval hla $args
+}
+
# END MIGRATION AIDS