On Wed, Feb 28, 2007 at 11:31:40PM -0800, Chuck McManis wrote:
> Ok, I've got serial I/O basically working.
>
> Question if I want to replace stdin/stdout must I open /dev/tty1 twice? as
> in
>
> stdin = fopen("/dev/tty1", "r");
> stdout = fopen("/dev/tty1", "w");
I think you need to set
CYGDAT_LIBC_STDIO_DEFAULT_CONSOLE. stdio/stdout will then be set at
compile time to what every device you point it to.
Andrew
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss