9 years, 11 months ago.

SerialBase::_base_putc - What does it exactly?

Hi there! I want to design a custom serial port driver, that should be compatible with most of mbed platforms. So I decided to use the class SerialBase from the mbed SDK.

SerialBase has the method _base_putc, What does it excatly? Does is block, as long as "SerialBase::writable()" returns 0? Will a _base_putc call directly after a _base_putc call fail, because the hardware tx buffer is yet not "writable()"?

How "should" I use _base_putc?

Be the first to answer this question.