[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [rtl] Is there a way to flush a FIFO ?




>  Is there any way to flush a fifo ?

char buf;
rtl_irqstate_t flags;

rtl_no_interrupts(flags);
while (rtf_get(FIFO_NUMBER, &buf, 1)>0);
rtl_restore_interrupts(flags);

Gabor