From: Spencer Oliver <ntfr...@users.sourceforge.net>

Issue warning when the old cmd is used and redirect to new supported one.
These deprecated cmds will be removed at some point.

Signed-off-by: Spencer Oliver <ntfr...@users.sourceforge.net>
---
 src/flash/startup.tcl |   11 +++++++++++
 1 files changed, 11 insertions(+), 0 deletions(-)

diff --git a/src/flash/startup.tcl b/src/flash/startup.tcl
index 6cb7d8e..5f40e64 100644
--- a/src/flash/startup.tcl
+++ b/src/flash/startup.tcl
@@ -1,2 +1,13 @@
 # Defines basic Tcl procs for OpenOCD flash module
 
+# ease migration to updated flash driver
+proc stm32x args {
+       echo "DEPRECATED! use 'stm32f1x $args' not 'stm32x $args'"
+       eval stm32f1x $args
+}
+
+proc stm32f2xxx args {
+       echo "DEPRECATED! use 'stm32f2x $args' not 'stm32f2xxx $args'"
+       eval stm32f2x $args
+}
+
-- 
1.7.0.4


________________________________________________________________________
This e-mail has been scanned for all viruses by Star. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk
________________________________________________________________________
_______________________________________________
Openocd-development mailing list
Openocd-development@lists.berlios.de
https://lists.berlios.de/mailman/listinfo/openocd-development

Reply via email to