[ECOS] How to check the input of STDIN channel?
Fri Nov 3 07:48:00 GMT 2006
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.
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss
More information about the Ecos-discuss