diff options
author | Spencer Oliver <ntfreak@users.sourceforge.net> | 2011-07-28 12:47:49 +0100 |
---|---|---|
committer | Spencer Oliver <ntfreak@users.sourceforge.net> | 2011-07-28 12:47:49 +0100 |
commit | 852289bc4935ec8ac27242812fccb4806e304859 (patch) | |
tree | 67dc3f1f859ca16546f9f99a4eafe3ab629aff34 /src/flash | |
parent | 89f593d8cbd74eb1db5d6beb2e60e9844504db6e (diff) | |
download | riscv-openocd-852289bc4935ec8ac27242812fccb4806e304859.zip riscv-openocd-852289bc4935ec8ac27242812fccb4806e304859.tar.gz riscv-openocd-852289bc4935ec8ac27242812fccb4806e304859.tar.bz2 |
flash: add support for deprecated stm32 flash cmds
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>
Diffstat (limited to 'src/flash')
-rw-r--r-- | 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 +} + |