[U-Boot-Users] API for serial functions

Wolfgang Denk wd at denx.de
Mon Oct 1 11:29:08 CEST 2007


Dear Mike,

in message <200710010415.35958.vapier at gentoo.org> you wrote:
> 
> is there a document that outlines the exact expected behavior of the serial
> functions ?  specifically, i'm looking to see if the serial_putc() function

There is no such document...

> is supposed to wait until the character it is given has been fully 
> transmitted over the wire, or if it is simply required to queue the character 
> up into the hardware fifo and then return ...

While it's not a strict requirement, I would  expect  that  you  wait
until the charatcer has been sent. You have toi add some wait anway -
either  at  the  start  or  at  the end of the function, and from the
debugging point of view it makes more sense to  wait  for  completion
before  continuing.  Performancewise  there  will be no difference, I
think.

Best regards,

Wolfgang Denk

-- 
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
"We all agree on the necessity of compromise. We just can't agree  on
when it's necessary to compromise."
                - Larry Wall in  <1991Nov13.194420.28091 at netlabs.com>




More information about the U-Boot mailing list