[En-Nut-Discussion] Quickly flushing input stream

Matthias Ringwald mringwal at inf.ethz.ch
Thu Apr 8 10:26:45 CEST 2004


hi krzystof


if you use the newer usart driver (instead the uart one)
an fread with buffer pointing to NULL will flush the buffer

(at least in 3.4.2 version, I have source code in front of me)
check Files->usartavr.h in docu

matthias

  On 08.04.2004, at 09:27, Krzysztof Jankowski wrote:

> Hi,
> how can I quickly clear (flush) an input stream e.x. UART's buffer ?
> For output streams there is fflush() function, so what about input 
> ones ?
>
> ...




More information about the En-Nut-Discussion mailing list