summaryrefslogtreecommitdiff
path: root/src/flash/nor/cfi.h
diff options
context:
space:
mode:
authorØyvind Harboe <oyvind.harboe@zylin.com>2010-06-10 15:27:35 +0200
committerØyvind Harboe <oyvind.harboe@zylin.com>2010-06-11 15:53:23 +0200
commitecc8041c0f4c30a7310c0f8414a5261ee7a090ca (patch)
treed0f1a2783181619a99565c64da5d1f67105f3de2 /src/flash/nor/cfi.h
parent73aaaf483035cfe79fe339d6c073e851bc9f8f9a (diff)
downloadopenocd+libswd-ecc8041c0f4c30a7310c0f8414a5261ee7a090ca.tar.gz
openocd+libswd-ecc8041c0f4c30a7310c0f8414a5261ee7a090ca.tar.bz2
openocd+libswd-ecc8041c0f4c30a7310c0f8414a5261ee7a090ca.tar.xz
openocd+libswd-ecc8041c0f4c30a7310c0f8414a5261ee7a090ca.zip
cfi: fix error propagation
any read/write operation to memory can fail. block write algorithm error propagation was broken in that it would continue after an error was reported writing data to ram or the algorithm failing. Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com>
Diffstat (limited to 'src/flash/nor/cfi.h')
-rw-r--r--src/flash/nor/cfi.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/flash/nor/cfi.h b/src/flash/nor/cfi.h
index fa717dc8..e2ff808b 100644
--- a/src/flash/nor/cfi.h
+++ b/src/flash/nor/cfi.h
@@ -35,7 +35,7 @@ struct cfi_flash_bank
uint16_t manufacturer;
uint16_t device_id;
- char qry[3];
+ uint8_t qry[3];
/* identification string */
uint16_t pri_id;
@@ -76,7 +76,7 @@ struct cfi_flash_bank
*/
struct cfi_intel_pri_ext
{
- char pri[3];
+ uint8_t pri[3];
uint8_t major_version;
uint8_t minor_version;
uint32_t feature_support;