projects
/
fw
/
altos
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Version 1.9.10
[fw/altos]
/
ao-tools
/
ao-rawload
/
ao-rawload.c
diff --git
a/ao-tools/ao-rawload/ao-rawload.c
b/ao-tools/ao-rawload/ao-rawload.c
index a4746b195411ac8d73bb237774f12cea3020b808..c139cda1b46876fb03db2b3b2bfc27efd9044ee6 100644
(file)
--- a/
ao-tools/ao-rawload/ao-rawload.c
+++ b/
ao-tools/ao-rawload/ao-rawload.c
@@
-38,10
+38,8
@@
int
main (int argc, char **argv)
{
struct ccdbg *dbg;
main (int argc, char **argv)
{
struct ccdbg *dbg;
- uint8_t status;
- uint16_t pc;
- struct hex_file *hex;
- struct hex_image *image;
+ struct ao_hex_file *hex;
+ struct ao_hex_image *image;
char *filename;
FILE *file;
char *tty = NULL;
char *filename;
FILE *file;
char *tty = NULL;
@@
-75,17
+73,17
@@
main (int argc, char **argv)
perror(filename);
exit(1);
}
perror(filename);
exit(1);
}
- hex =
ccdbg
_hex_file_read(file, filename);
+ hex =
ao
_hex_file_read(file, filename);
fclose(file);
if (!hex)
exit (1);
fclose(file);
if (!hex)
exit (1);
- image =
ccdbg
_hex_image_create(hex);
+ image =
ao
_hex_image_create(hex);
if (!image) {
fprintf(stderr, "image create failed\n");
exit (1);
}
if (!image) {
fprintf(stderr, "image create failed\n");
exit (1);
}
-
ccdbg
_hex_file_free(hex);
+
ao
_hex_file_free(hex);
if (!tty)
tty = cc_usbdevs_find_by_arg(device, "TIDongle");
dbg = ccdbg_open(tty);
if (!tty)
tty = cc_usbdevs_find_by_arg(device, "TIDongle");
dbg = ccdbg_open(tty);
@@
-107,7
+105,7
@@
main (int argc, char **argv)
} else {
printf("Cannot load code to 0x%04x\n",
image->address);
} else {
printf("Cannot load code to 0x%04x\n",
image->address);
-
ccdbg
_hex_image_free(image);
+
ao
_hex_image_free(image);
ccdbg_close(dbg);
exit(1);
}
ccdbg_close(dbg);
exit(1);
}