From 22286176373246c53953ac6a1b2caf0dab879077 Mon Sep 17 00:00:00 2001 From: Ashish Chaudhari Date: Thu, 2 Aug 2018 15:46:59 -0700 Subject: rfnoc: dma_fifo: Added a more robust flush mechanism - The flushing mechanism now looks similar to that in noc_shell - Make use of new flush bit in FIFO control register - Restrict using the clear bit only after flushing to ensure no partial packets are introduced in the stream. (clear immediately empties out FIFOs) - Changes are backwards compatible with older FPGAs --- host/lib/include/uhdlib/usrp/cores/dma_fifo_core_3000.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'host/lib/include') diff --git a/host/lib/include/uhdlib/usrp/cores/dma_fifo_core_3000.hpp b/host/lib/include/uhdlib/usrp/cores/dma_fifo_core_3000.hpp index 17c02c93a..1869191e3 100644 --- a/host/lib/include/uhdlib/usrp/cores/dma_fifo_core_3000.hpp +++ b/host/lib/include/uhdlib/usrp/cores/dma_fifo_core_3000.hpp @@ -34,7 +34,7 @@ public: /*! * Flush the DMA FIFO. Will clear all contents. */ - virtual void flush() = 0; + virtual bool flush(uint32_t timeout_ms = 2000) = 0; /*! * Resize and rebase the DMA FIFO. Will clear all contents. -- cgit v1.2.3