diff options
author | Øyvind Harboe <oyvind.harboe@zylin.com> | 2011-03-31 18:37:19 +0200 |
---|---|---|
committer | Øyvind Harboe <oyvind.harboe@zylin.com> | 2011-04-01 08:59:07 +0200 |
commit | 2615bf4398f393ee1e387128064093dcd44749c8 (patch) | |
tree | f9e610d2ec9e68438397114e6e13997a48b8e62e /src/target/target.h | |
parent | d76fd2aac798b4b052a50883ac148cbc19080d4a (diff) |
types: write memory now uses const
Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com>
Diffstat (limited to 'src/target/target.h')
-rw-r--r-- | src/target/target.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/target/target.h b/src/target/target.h index 32fa87a1..fd7de560 100644 --- a/src/target/target.h +++ b/src/target/target.h @@ -408,7 +408,7 @@ int target_read_memory(struct target *target, * This routine is wrapper for target->type->write_memory. */ int target_write_memory(struct target *target, - uint32_t address, uint32_t size, uint32_t count, uint8_t *buffer); + uint32_t address, uint32_t size, uint32_t count, const uint8_t *buffer); /** * Write @a count items of 4 bytes to the memory of @a target at @@ -418,7 +418,7 @@ int target_write_memory(struct target *target, * This routine is wrapper for target->type->bulk_write_memory. */ int target_bulk_write_memory(struct target *target, - uint32_t address, uint32_t count, uint8_t *buffer); + uint32_t address, uint32_t count, const uint8_t *buffer); /* * Write to target memory using the virtual address. @@ -445,7 +445,7 @@ int target_bulk_write_memory(struct target *target, * peripheral registers which do not support byte operations. */ int target_write_buffer(struct target *target, - uint32_t address, uint32_t size, uint8_t *buffer); + uint32_t address, uint32_t size, const uint8_t *buffer); int target_read_buffer(struct target *target, uint32_t address, uint32_t size, uint8_t *buffer); int target_checksum_memory(struct target *target, |