]> git.sur5r.net Git - openocd/commit
flash/nor/tcl: Make read_bank parameters optional
authorMarc Schink <openocd-dev@marcschink.de>
Fri, 4 Nov 2016 08:19:21 +0000 (09:19 +0100)
committerFreddie Chopin <freddie.chopin@gmail.com>
Sat, 17 Jun 2017 11:45:56 +0000 (12:45 +0100)
commit1725abc3c0b69660cfe3e43ee3f3dbb479821b31
treec0122676aaf88d54d94cc873745e6b6a33ffcb31
parent7112e5f57afffb3b387283f2f6048bf45f25c840
flash/nor/tcl: Make read_bank parameters optional

Make 'offset' and 'length' parameters optional, if both are omitted
simply read the whole flash bank.

Additionally, check if the 'offset' and 'length' arguments are out of
bounds of the flash bank.

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