This is the mail archive of the ecos-discuss@sourceware.org mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: serial is working


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]