summaryrefslogtreecommitdiff
path: root/src/kernel/ao_stdio.c
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2017-01-10 14:45:25 -0800
committerKeith Packard <keithp@keithp.com>2017-02-20 12:34:01 -0800
commit5dc5e2e238f8c1a8ca35d85ec046124afa9385ad (patch)
tree9835e0a5a213ed0c44d3a320d77b3487c148a0a8 /src/kernel/ao_stdio.c
parente6fb0f13ba230ad9ce86cfa7f56491a0a3bd4b3d (diff)
altos: Allow for console to be used for stdio
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src/kernel/ao_stdio.c')
-rw-r--r--src/kernel/ao_stdio.c5
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];