This is the mail archive of the ecos-discuss@sourceware.cygnus.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: Release testing.



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.

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