[En-Nut-Discussion] Is fprintf blocking?
harald.kipp at egnite.de
Fri Jan 12 15:54:05 CET 2007
Uwe Bonnes schrieb:
> what happens if the buffer for fprintf is full and fprintf tries to print
> even more into that buffer? Will this fprintf call block?
Yes, it will be blocking. When using the polling debug device, there
will be no buffering at all. printf() will return after the last
character had been written to the tx register. When using the interrupt
driven U(S)ART device, it will block when the buffer is full.
devUsartAvr allows to increase the buffer size.
More information about the En-Nut-Discussion