]> git.sur5r.net Git - openocd/commitdiff
flash: add support for deprecated stm32 flash cmds
authorSpencer Oliver <ntfreak@users.sourceforge.net>
Thu, 28 Jul 2011 11:47:49 +0000 (12:47 +0100)
committerSpencer Oliver <ntfreak@users.sourceforge.net>
Thu, 28 Jul 2011 11:47:49 +0000 (12:47 +0100)
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 <ntfreak@users.sourceforge.net>
src/flash/startup.tcl

index 6cb7d8e8a402f1c02e84e035da5344ec46869f2a..5f40e64912a2515bed7a43403b2c3f60dcf63be9 100644 (file)
@@ -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
+}
+