projects
/
bertos.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
mt29f nand: fix kblock buffer initialization: load correctly all buffer.
[bertos.git]
/
bertos
/
cpu
/
cortex-m3
/
drv
/
mt29f_sam3.c
diff --git
a/bertos/cpu/cortex-m3/drv/mt29f_sam3.c
b/bertos/cpu/cortex-m3/drv/mt29f_sam3.c
index 03f5109fde26c6c1451e3804c41f27f7826348e8..ce2fadedd8d9dac14a18a291701f5a14e21d9921 100644
(file)
--- a/
bertos/cpu/cortex-m3/drv/mt29f_sam3.c
+++ b/
bertos/cpu/cortex-m3/drv/mt29f_sam3.c
@@
-882,7
+882,7
@@
bool mt29f_init(Mt29f *chip, struct Heap *heap, unsigned chip_select)
}
// Load the first block in the cache
- return mt29f_readDirect(&chip->fd, 0, chip->fd.priv.buf, 0,
MT29F_DATA_SIZE
);
+ return mt29f_readDirect(&chip->fd, 0, chip->fd.priv.buf, 0,
chip->fd.blk_size
);
}