diff options
author | Keith Packard <keithp@keithp.com> | 2009-08-18 12:19:31 -0700 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2009-08-18 14:39:15 -0700 |
commit | 9b03d620722dc54630539afba40720c30de69b2d (patch) | |
tree | 49450794239dfcfaab32190ccb7c81e2e71c2bbc /ao-tools/ao-dbg/ao-dbg-parse.c | |
parent | 7c790fe859dff062692964338091ffbbcdf63257 (diff) |
Use --tty/-T on command line to specify target device
Also, use the ALTOS_TTY environment variable in all tools. Note that
the magic value of "BITBANG" switches the library to connecting
through a CP2103 instead.
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'ao-tools/ao-dbg/ao-dbg-parse.c')
-rw-r--r-- | ao-tools/ao-dbg/ao-dbg-parse.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/ao-tools/ao-dbg/ao-dbg-parse.c b/ao-tools/ao-dbg/ao-dbg-parse.c index 5db6c01c..825d0e9c 100644 --- a/ao-tools/ao-dbg/ao-dbg-parse.c +++ b/ao-tools/ao-dbg/ao-dbg-parse.c @@ -195,11 +195,9 @@ command_read (void) enum command_result result; struct command_function *func; - s51_dbg = ccdbg_open (); - if (!s51_dbg) { - perror("ccdbg_open"); + s51_dbg = ccdbg_open (s51_tty); + if (!s51_dbg) exit(1); - } ccdbg_debug_mode(s51_dbg); ccdbg_halt(s51_dbg); s51_printf("Welcome to the non-simulated processor\n"); |