summaryrefslogtreecommitdiff
path: root/src/flash/str9x.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/str9x.c
parentb6db182c0020051e0dc642ca0b1040ea7453dcd0 (diff)
downloadopenocd+libswd-95e13054cafeeb13163d85822e4202e12007e1a7.tar.gz
openocd+libswd-95e13054cafeeb13163d85822e4202e12007e1a7.tar.bz2
openocd+libswd-95e13054cafeeb13163d85822e4202e12007e1a7.tar.xz
openocd+libswd-95e13054cafeeb13163d85822e4202e12007e1a7.zip
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/str9x.c')
-rw-r--r--src/flash/str9x.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/flash/str9x.c b/src/flash/str9x.c
index 32445ae2..7de98b12 100644
--- a/src/flash/str9x.c
+++ b/src/flash/str9x.c
@@ -569,7 +569,7 @@ static int str9x_write(struct flash_bank_s *bank,
/* write data command */
target_write_u16(target, bank_adr, 0x40);
- target->type->write_memory(target, address, 2, 1, buffer + bytes_written);
+ target_write_memory(target, address, 2, 1, buffer + bytes_written);
/* get status command */
target_write_u16(target, bank_adr, 0x70);
@@ -618,7 +618,7 @@ static int str9x_write(struct flash_bank_s *bank,
/* write data comamnd */
target_write_u16(target, bank_adr, 0x40);
- target->type->write_memory(target, address, 2, 1, last_halfword);
+ target_write_memory(target, address, 2, 1, last_halfword);
/* query status command */
target_write_u16(target, bank_adr, 0x70);