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?


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?

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

On Fri, Nov 03, 2006 at 02:46:39PM +0800, Wang Cui wrote:
> I use the console channel to configure the product at runtime.
> When I try to get input from STDIN, the standard "getchar()" call will
BLOCK
> until get input, which also block other threads.

You are using the hal diag TTY driver. This is very simple, polled IO,
since it is only to be used for debugging. Install the full interrupt
driven serial driver and use that.

Andrew

_________________________________________________________________
享用世界上最大的电子邮件系统― MSN Hotmail。 http://www.hotmail.com



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