diff options
| author | Keith Packard <keithp@keithp.com> | 2017-01-10 14:45:25 -0800 | 
|---|---|---|
| committer | Keith Packard <keithp@keithp.com> | 2017-02-20 12:34:01 -0800 | 
| commit | 5dc5e2e238f8c1a8ca35d85ec046124afa9385ad (patch) | |
| tree | 9835e0a5a213ed0c44d3a320d77b3487c148a0a8 /src | |
| parent | e6fb0f13ba230ad9ce86cfa7f56491a0a3bd4b3d (diff) | |
altos: Allow for console to be used for stdio
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src')
| -rw-r--r-- | src/kernel/ao_stdio.c | 5 | 
1 files changed, 4 insertions, 1 deletions
| diff --git a/src/kernel/ao_stdio.c b/src/kernel/ao_stdio.c index b79d465a..f0ee0a14 100644 --- a/src/kernel/ao_stdio.c +++ b/src/kernel/ao_stdio.c @@ -55,6 +55,9 @@  #ifndef PACKET_HAS_SLAVE  #define PACKET_HAS_SLAVE	0  #endif +#ifndef CONSOLE_STDIN +#define CONSOLE_STDIN		0 +#endif  #define USE_SERIAL_STDIN (USE_SERIAL_0_STDIN +	\  			  USE_SERIAL_1_STDIN +	\ @@ -67,7 +70,7 @@  			  USE_SERIAL_8_STDIN +	\  			  USE_SERIAL_9_STDIN) -#define AO_NUM_STDIOS	(HAS_USB + PACKET_HAS_SLAVE + USE_SERIAL_STDIN) +#define AO_NUM_STDIOS	(HAS_USB + PACKET_HAS_SLAVE + USE_SERIAL_STDIN + CONSOLE_STDIN)  __xdata struct ao_stdio ao_stdios[AO_NUM_STDIOS]; | 
