summaryrefslogtreecommitdiff
path: root/ao-tools/lib/ccdbg-memory.c
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2013-11-27 13:59:06 -0800
committerKeith Packard <keithp@keithp.com>2013-11-27 13:59:06 -0800
commit95a8180f3d7929dbad65c80421f99c925f245af0 (patch)
tree7934a5cc48edf7e774d5be5f366203a79a2db497 /ao-tools/lib/ccdbg-memory.c
parent73b1a7e644e255558378ab66de6426a7dfd8a7dc (diff)
ao-tools: Create general elf and hex library routines
Pulls the elf stuff out of ao-stmload, change the hex stuff into ao_ routines. Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'ao-tools/lib/ccdbg-memory.c')
-rw-r--r--ao-tools/lib/ccdbg-memory.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/ao-tools/lib/ccdbg-memory.c b/ao-tools/lib/ccdbg-memory.c
index 554ac637..04059e2e 100644
--- a/ao-tools/lib/ccdbg-memory.c
+++ b/ao-tools/lib/ccdbg-memory.c
@@ -117,18 +117,18 @@ ccdbg_write_uint8(struct ccdbg *dbg, uint16_t addr, uint8_t byte)
}
uint8_t
-ccdbg_write_hex_image(struct ccdbg *dbg, struct hex_image *image, uint16_t offset)
+ccdbg_write_hex_image(struct ccdbg *dbg, struct ao_hex_image *image, uint16_t offset)
{
ccdbg_write_memory(dbg, image->address + offset, image->data, image->length);
return 0;
}
-struct hex_image *
+struct ao_hex_image *
ccdbg_read_hex_image(struct ccdbg *dbg, uint16_t address, uint16_t length)
{
- struct hex_image *image;
+ struct ao_hex_image *image;
- image = calloc(sizeof(struct hex_image) + length, 1);
+ image = calloc(sizeof(struct ao_hex_image) + length, 1);
image->address = address;
image->length = length;
memset(image->data, 0xff, length);