projects
/
fw
/
altos
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
altos: Escape lisp REP loop with () input
[fw/altos]
/
ao-tools
/
lib
/
ccdbg-memory.c
diff --git
a/ao-tools/lib/ccdbg-memory.c
b/ao-tools/lib/ccdbg-memory.c
index 554ac637c6911491e61005ba76ca7932d8d06686..04059e2eeddacf373bf2bf6437321ef72663acbb 100644
(file)
--- 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
}
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;
}
{
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)
{
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);
image->address = address;
image->length = length;
memset(image->data, 0xff, length);