diff options
author | Keith Packard <keithp@keithp.com> | 2011-04-01 17:25:07 -0700 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2011-04-01 17:25:07 -0700 |
commit | a5d60fdb9c969c1516feb76a16001c9688112c4c (patch) | |
tree | 3adf3dd72e6343bede901c7b77b029d1ae507eca /src/ao.h | |
parent | 4e2c18249e16c98cf5f7dccdf8d3b84bc473863a (diff) |
altos: Make cmd echo per-connection instead of global
Allow different connections to use different echo values, permitting
the packet link to turn off echo while the USB link still has it on.
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src/ao.h')
-rw-r--r-- | src/ao.h | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -1178,8 +1178,10 @@ struct ao_stdio { char (*pollchar)(void); void (*putchar)(char c) __reentrant; void (*flush)(void); + uint8_t echo; }; +extern __xdata struct ao_stdio ao_stdios[]; extern __data int8_t ao_cur_stdio; extern __data int8_t ao_num_stdios; @@ -1188,6 +1190,9 @@ flush(void); extern __xdata uint8_t ao_stdin_ready; +uint8_t +ao_echo(void); + void ao_add_stdio(char (*pollchar)(void), void (*putchar)(char) __reentrant, |