This is the mail archive of the
ecos-discuss@sourceware.cygnus.com
mailing list for the eCos project.
RE: Release testing.
- To: "Patrick O'Grady" <patrick at softprocess dot com>
- Subject: RE: [ECOS] Release testing.
- From: Gary Thomas <gthomas at redhat dot com>
- Date: Mon, 07 Feb 2000 10:29:35 -0700 (MST)
- Cc: ecos-discuss at sourceware dot cygnus dot com
On 07-Feb-00 Patrick O'Grady wrote:
> - The 16550As have 16-character FIFOs, but the serial_DSR function I
> borrowed from the AEB HAL only supports transmitting and receiving one
> character at a time. Is there a more efficient way of sending more than
> one character than putting a loop around the (chan->callbacks->xmt_char)
> and (chan->callbacks->rcv_char) in the serial port DSR function? Fewer
> function calls==better performance, and probably isn't that hard to do.
>
The 'xmt_char' callback already handles this. It will continue to call
your low level "put" routine until the response comes back that no more
characters could be handled.
Putting the call to 'rcv_char' in a loop does not add much overhead and
is the recommended way to handle this.