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/at91sam7.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/at91sam7.c')
-rw-r--r-- | src/flash/at91sam7.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/flash/at91sam7.c b/src/flash/at91sam7.c index fb87aa3..186aa06 100644 --- a/src/flash/at91sam7.c +++ b/src/flash/at91sam7.c @@ -665,7 +665,7 @@ static int at91sam7_erase_check(struct flash_bank_s *bank) for (nSector=0; nSector<bank->num_sectors; nSector++) { bank->sectors[nSector].is_erased = 1; - retval = target->type->read_memory(target, bank->base+bank->sectors[nSector].offset, 4, + retval = target_read_memory(target, bank->base+bank->sectors[nSector].offset, 4, bank->sectors[nSector].size/4, buffer); if (retval != ERROR_OK) return retval; |