X-Git-Url: https://review.openocd.org/gitweb?a=blobdiff_plain;f=src%2Fflash%2Fstartup.tcl;h=5f40e64912a2515bed7a43403b2c3f60dcf63be9;hb=f28a5d9217fad9b5baf65eb6fa0deda4b9c89203;hp=fcebbe01a1abb1e7c6b9843a556d82e0b0a03abc;hpb=cb7dbc1af41068f826246beb53870c01d8973bb8;p=openocd.git diff --git a/src/flash/startup.tcl b/src/flash/startup.tcl index fcebbe01a1..5f40e64912 100644 --- a/src/flash/startup.tcl +++ b/src/flash/startup.tcl @@ -1,16 +1,13 @@ # Defines basic Tcl procs for OpenOCD flash module -# Show flash in human readable form -# This is an example of a human readable form of a low level fn -proc flash_banks {} { - set i 0 - set result "" - foreach {a} [ocd_flash_banks] { - if {$i > 0} { - set result "$result\n" - } - set result [format "$result#%d: %s at 0x%08x, size 0x%08x, buswidth %d, chipwidth %d" $i $a(name) $a(base) $a(size) $a(bus_width) $a(chip_width)] - set i [expr $i+1] - } - return $result +# 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 +} +