diff options
author | Zachary T Welch <zw@superlucidity.net> | 2009-11-08 02:06:34 -0800 |
---|---|---|
committer | Zachary T Welch <zw@superlucidity.net> | 2009-11-16 01:38:19 -0800 |
commit | 23cc85b307de80be089dcb0048dbb6168e59651a (patch) | |
tree | 34c8483d1a694b4660bc0ba4ed67f101e296a60d /testing/examples/SAM7X256Test/inc | |
parent | 45527ee82c9e7c93b29b79f01f52d663960649c2 (diff) | |
download | openocd+libswd-23cc85b307de80be089dcb0048dbb6168e59651a.tar.gz openocd+libswd-23cc85b307de80be089dcb0048dbb6168e59651a.tar.bz2 openocd+libswd-23cc85b307de80be089dcb0048dbb6168e59651a.tar.xz openocd+libswd-23cc85b307de80be089dcb0048dbb6168e59651a.zip |
Add nand_fileio_* helper APIs.
This patch provides helpers APIs that will eliminate duplicated code in
the the NAND 'dump' and 'write' commands by factoring their common code
into static helper functions. These helpers may be useful for creating
new commands, as shown in the final patch to 'verify' flash from a file.
Several previously unreported error conditions now generate messages and
propogate the return codes, such as when the file fails to open and bad
arguments are given. These changes will fix a possible memory leak in
nand dump command, in the case that the dump file failed to open.
Overall, the changes should be functionally equivalent, but the
resulting code will be easier to improve and extend consistently.
Diffstat (limited to 'testing/examples/SAM7X256Test/inc')
0 files changed, 0 insertions, 0 deletions