From: Spencer Oliver Date: Thu, 28 Jul 2011 11:47:49 +0000 (+0100) Subject: flash: add support for deprecated stm32 flash cmds X-Git-Tag: v0.5.0~7 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=852289bc4935ec8ac27242812fccb4806e304859;p=openocd 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 --- diff --git a/src/flash/startup.tcl b/src/flash/startup.tcl index 6cb7d8e8..5f40e649 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 +} +