This is the mail archive of the
ecos-discuss@sourceware.org
mailing list for the eCos project.
Re: serial is working
- From: Andrew Lunn <andrew at lunn dot ch>
- To: Chuck McManis <ecos at mcmanis dot com>
- Cc: ECOS Discussion Group <ecos-discuss at sources dot redhat dot com>
- Date: Thu, 1 Mar 2007 13:52:11 +0100
- Subject: Re: [ECOS] serial is working
- References: <6.1.2.0.2.20070228232116.04810ec0@192.168.110.40>
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