Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
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?