aboutsummaryrefslogtreecommitdiff
path: root/src/lmi.c
diff options
context:
space:
mode:
authorGareth McMullin2015-03-15 14:31:57 -0700
committerGareth McMullin2015-03-15 14:31:57 -0700
commitee3af96a736139b71678a0e590865f9ffafc2f35 (patch)
treec607858419aae08f4946bb2b400e7159e95cb6fe /src/lmi.c
parent2e785e56fa4e77549878eac88f2c4891af043e64 (diff)
Consolidate target_mem_read* and target_mem_write* methods.
There are now only mem_read and mem_write, that must handle all alignments. These methods return void, errors must be checked with target_check_error.
Diffstat (limited to 'src/lmi.c')
-rw-r--r--src/lmi.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lmi.c b/src/lmi.c
index 9359458..8c5e143 100644
--- a/src/lmi.c
+++ b/src/lmi.c
@@ -159,9 +159,9 @@ int lmi_flash_write(struct target_s *target, uint32_t dest,
data[1] = len >> 2;
memcpy(&data[2], src, len);
DEBUG("Sending stub\n");
- target_mem_write_words(target, 0x20000000, (void*)lmi_flash_write_stub, 0x30);
+ target_mem_write(target, 0x20000000, (void*)lmi_flash_write_stub, 0x30);
DEBUG("Sending data\n");
- target_mem_write_words(target, 0x20000030, data, len + 8);
+ target_mem_write(target, 0x20000030, data, len + 8);
DEBUG("Running stub\n");
target_pc_write(target, 0x20000000);
target_halt_resume(target, 0);