]> git.sur5r.net Git - openocd/commit
flash/nor/tcl: Make write_bank parameter optional
authorMarc Schink <openocd-dev@marcschink.de>
Fri, 4 Nov 2016 07:39:03 +0000 (08:39 +0100)
committerFreddie Chopin <freddie.chopin@gmail.com>
Sat, 17 Jun 2017 11:44:25 +0000 (12:44 +0100)
commitbdc71c5252995d55298ba7bba49adec074104619
tree2e406b6307e60500d904830d274eb4654f41f22d
parent2de82d39a2df0bfc040f753549eabcb5b737beb1
flash/nor/tcl: Make write_bank parameter optional

Make the 'offset' parameter optional, if omitted simply start at the
beginning of the flash bank.

Additionally, check if the argument is out of bounds of the flash bank.

Change-Id: I8e9632b539ad9e83211e1ac6a06da4c8109cbc60
Signed-off-by: Marc Schink <openocd-dev@marcschink.de>
Reviewed-on: http://openocd.zylin.com/3860
Tested-by: jenkins
Reviewed-by: Tomas Vanek <vanekt@fbl.cz>
doc/openocd.texi
src/flash/nor/tcl.c