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: How to check the input of STDIN channel?


From: Andrew Lunn <andrew@lunn.ch>
To: wang cui <iucgnaw@msn.com>
CC: andrew@lunn.ch, ecos-discuss@ecos.sourceware.org
Subject: Re: [ECOS] How to check the input of STDIN channel?
Date: Fri, 3 Nov 2006 09:22:13 +0100

On Fri, Nov 03, 2006 at 08:09:46AM +0000, wang cui wrote:
> Thanks for your reply.
>
> If I use the full interrupt driven serial driver for console, I think
the
> driver will be intialised until the "cyg_io_init()", then the ealier
output
> will be missing?
>
> And I also want to printf messages in ISRs, can the "full interrupt
driven
> serial driver" be used?

Both the diag TTY and the full serial driver can share the same
device. So in your ISRs use diag_printf().

Andrew

Thanks.
The STDIO defaultly use the "/dev/ttydiag", how to shift it to another device, like "/dev/tty0"?


_________________________________________________________________
与联机的朋友进行交流,请使用 MSN Messenger: http://messenger.msn.com/cn



-- 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]