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?


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

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