aboutsummaryrefslogtreecommitdiff
path: root/src/flash/lpc288x.c
diff options
context:
space:
mode:
authorzwelch <zwelch@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2009-05-31 09:37:57 +0000
committerzwelch <zwelch@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2009-05-31 09:37:57 +0000
commit95e13054cafeeb13163d85822e4202e12007e1a7 (patch)
treee35b5658762512024c7ec750acd75bfae9874905 /src/flash/lpc288x.c
parentb6db182c0020051e0dc642ca0b1040ea7453dcd0 (diff)
downloadriscv-openocd-95e13054cafeeb13163d85822e4202e12007e1a7.zip
riscv-openocd-95e13054cafeeb13163d85822e4202e12007e1a7.tar.gz
riscv-openocd-95e13054cafeeb13163d85822e4202e12007e1a7.tar.bz2
Add target_write_memory wrapper:
- replaces all calls to target->type->write_memory. - add documentation in target_s to warn not to invoke callback directly. git-svn-id: svn://svn.berlios.de/openocd/trunk@1960 b42882b7-edfa-0310-969c-e2dbd0fdcd60
Diffstat (limited to 'src/flash/lpc288x.c')
-rw-r--r--src/flash/lpc288x.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/flash/lpc288x.c b/src/flash/lpc288x.c
index 505dd1e..29b7b81 100644
--- a/src/flash/lpc288x.c
+++ b/src/flash/lpc288x.c
@@ -406,7 +406,7 @@ static int lpc288x_write(struct flash_bank_s *bank, u8 *buffer, u32 offset, u32
* it seems not to be a LOT slower....
* bulk_write_memory() is no quicker :(*/
#if 1
- if (target->type->write_memory(target, offset + dest_offset, 4, 128, page_buffer) != ERROR_OK)
+ if (target_write_memory(target, offset + dest_offset, 4, 128, page_buffer) != ERROR_OK)
{
LOG_ERROR("Write failed s %x p %x", sector, page);
return ERROR_FLASH_OPERATION_FAILED;