diff options
author | zwelch <zwelch@b42882b7-edfa-0310-969c-e2dbd0fdcd60> | 2009-05-31 09:37:35 +0000 |
---|---|---|
committer | zwelch <zwelch@b42882b7-edfa-0310-969c-e2dbd0fdcd60> | 2009-05-31 09:37:35 +0000 |
commit | b6db182c0020051e0dc642ca0b1040ea7453dcd0 (patch) | |
tree | 17a4074984d6f72033f252e2e3361fd90cc8b96e /src/flash/lpc3180_nand_controller.c | |
parent | 678519311834fd7a1126f8d217c734d4f5ffbb3d (diff) | |
download | riscv-openocd-b6db182c0020051e0dc642ca0b1040ea7453dcd0.zip riscv-openocd-b6db182c0020051e0dc642ca0b1040ea7453dcd0.tar.gz riscv-openocd-b6db182c0020051e0dc642ca0b1040ea7453dcd0.tar.bz2 |
Add target_read_memory wrapper:
- replaces all calls to target->type->read_memory.
- add documentation in target_s to warn not to invoke callback directly.
git-svn-id: svn://svn.berlios.de/openocd/trunk@1959 b42882b7-edfa-0310-969c-e2dbd0fdcd60
Diffstat (limited to 'src/flash/lpc3180_nand_controller.c')
-rw-r--r-- | src/flash/lpc3180_nand_controller.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/flash/lpc3180_nand_controller.c b/src/flash/lpc3180_nand_controller.c index 1cbd920..a074acc 100644 --- a/src/flash/lpc3180_nand_controller.c +++ b/src/flash/lpc3180_nand_controller.c @@ -759,12 +759,12 @@ static int lpc3180_read_page(struct nand_device_s *device, u32 page, u8 *data, u if (data) { - target->type->read_memory(target, 0x200a8000, 4, 128, page_buffer + page_bytes_done); + target_read_memory(target, 0x200a8000, 4, 128, page_buffer + page_bytes_done); } if (oob) { - target->type->read_memory(target, 0x200a8000, 4, 4, oob_buffer + oob_bytes_done); + target_read_memory(target, 0x200a8000, 4, 4, oob_buffer + oob_bytes_done); } page_bytes_done += 512; |