scripts: notify user of deprecated jtag_* functions
authorSpencer Oliver <spen@spen-soft.co.uk>
Tue, 15 Nov 2011 09:18:44 +0000 (09:18 +0000)
committerAndreas Fritiofson <andreas.fritiofson@gmail.com>
Fri, 18 Nov 2011 22:07:09 +0000 (22:07 +0000)
Change-Id: Ia97dda6918e20fb29d6e76d43856eede8fcc60dd
Signed-off-by: Spencer Oliver <spen@spen-soft.co.uk>
Reviewed-on: http://openocd.zylin.com/203
Tested-by: jenkins
Reviewed-by: Andreas Fritiofson <andreas.fritiofson@gmail.com>
src/jtag/startup.tcl

index 1779df51bfa682fc90f56b1a85000b4a9238a171..11a79779341488001978d030fbfc0379221642eb 100644 (file)
@@ -91,8 +91,19 @@ add_help_text measure_clk "Runs a test to measure the JTAG clk. Useful with RCLK
 #
 # FIXME phase these aids out after about April 2011
 #
-proc jtag_khz args { eval adapter_khz $args }
-proc jtag_nsrst_delay args { eval adapter_nsrst_delay $args }
-proc jtag_nsrst_assert_width args { eval adapter_nsrst_assert_width $args }
+proc jtag_khz args {
+       echo "DEPRECATED! use 'adapter_khz' not 'jtag_khz'"
+       eval adapter_khz $args
+}
+
+proc jtag_nsrst_delay args {
+       echo "DEPRECATED! use 'adapter_nsrst_delay' not 'jtag_nsrst_delay'"
+       eval adapter_nsrst_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
+}
 
 # END MIGRATION AIDS