diff options
author | Keith Packard <keithp@keithp.com> | 2012-04-12 14:51:07 -0700 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2012-04-14 14:04:29 -0700 |
commit | 040a6eb119451026e1ec7c3a6a8e76b439c632d5 (patch) | |
tree | c334b0f83d8202626c544238b53def46339042b0 /src/core/ao_stdio.c | |
parent | f952f9c285e2718a433c8c720c9b5d9c369e7036 (diff) |
altos: Massive product config cleanup
Support multiple serial ports more cleanly
Split out parts of ao.h into separate feature header files
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src/core/ao_stdio.c')
-rw-r--r-- | src/core/ao_stdio.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/core/ao_stdio.c b/src/core/ao_stdio.c index 2967e705..18fa913e 100644 --- a/src/core/ao_stdio.c +++ b/src/core/ao_stdio.c @@ -21,6 +21,12 @@ * Basic I/O functions to support SDCC stdio package */ +#ifdef SERIAL_STDIN_PORT +#define USE_SERIAL_STDIN 1 +#else +#define USE_SERIAL_STDIN 0 +#endif + #define AO_NUM_STDIOS (HAS_USB + PACKET_HAS_SLAVE + USE_SERIAL_STDIN) __xdata struct ao_stdio ao_stdios[AO_NUM_STDIOS]; |