This is the mail archive of the ecos-discuss@sources.redhat.com 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]

Re: Blocking input on diagnostics


On Tue, Mar 13, 2001 at 11:10:41AM +0100, Jesper Skov wrote:

> Robert> Everything works OK, except that I notice that stdin through
> Robert> the diagnostics uses a busy wait, which is undesirable for the
> 
> They are just that - diagnostics routines. Intended for debug output
> only.

We're talking about input handling.  It's quite trivial to do
input via polling without busy-wait loops.

> Robert> usual reasons. I notice also that the interrupt handler only
> Robert> seems to cater for ctrl-c handling. The comms. stuff seems to
> Robert> have been abstracted out through the CYGACC_COMM_xxx
> Robert> interface, and there doesn't seem to be any catering for
> Robert> handling all characters via ISR.

Handling everything via interrupts is going to be significantly
more complicated and like Jesper says, you might as well use
the full-blown kernel and serial driver.

> Robert> Is there a 'proper' way to put in blocking wait for all
> Robert> characters via ISR on the serial input?
> 
> Yes, use the serial driver.

-- 
Grant Edwards
grante@visi.com


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