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.



Hi, Gary--

On Mon, 7 Feb 2000, Gary Thomas wrote:

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

Thanks for clearing that up--I was going by the documentation in the AEB
serial port driver which only suggested returning 'true' if the character
was sent to the device...  it didn't give any suggestion that the routine
would be called until 'false' was returned.  Guess I coulda looked at the
documentation, huh?  Thanks again!

-patrick
patrick@softprocess.com




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