diff options
author | Keith Packard <keithp@keithp.com> | 2013-03-03 16:53:52 -0800 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2013-03-03 16:53:52 -0800 |
commit | 3605e97ee918b3f87e4c471906f708c3ea027eef (patch) | |
tree | 9b1413a05752e566e43943330fdda1b7489ecc5c /ao-tools/lib/cc-usb.c | |
parent | 784edcda52d681bbc9302fbc7efb80cb214f71b8 (diff) |
ao-tools: Add ao-dumpflash program
This program dumps the entire flash contents of an AltOS device to
allow for external analysis.
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'ao-tools/lib/cc-usb.c')
-rw-r--r-- | ao-tools/lib/cc-usb.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/ao-tools/lib/cc-usb.c b/ao-tools/lib/cc-usb.c index 1580c6d9..9f07e662 100644 --- a/ao-tools/lib/cc-usb.c +++ b/ao-tools/lib/cc-usb.c @@ -375,11 +375,12 @@ cc_usb_reset(struct cc_usb *cc) } void -cc_usb_open_remote(struct cc_usb *cc, int channel) +cc_usb_open_remote(struct cc_usb *cc, int freq, char *call) { if (!cc->remote) { - printf ("channel %d\n", channel); - cc_usb_printf(cc, "\nc r %d\np\nE 0\n", channel); + fprintf (stderr, "freq %dkHz\n", freq); + fprintf (stderr, "call %s\n", call); + cc_usb_printf(cc, "\nc F %d\nc c %s\np\nE 0\n", freq, call); do { cc->in_count = cc->in_pos = 0; _cc_usb_sync(cc, 100); |