diff options
| author | Josh Blum <josh@joshknows.com> | 2010-11-08 17:22:37 -0800 | 
|---|---|---|
| committer | Josh Blum <josh@joshknows.com> | 2010-11-08 17:22:37 -0800 | 
| commit | 81c9f77306dc82f250bfb2871b8bd7db67a40085 (patch) | |
| tree | b1f1ec0a6feb4d66aaa35be97ffa795b122b3673 /host/lib/usrp/usrp2/io_impl.cpp | |
| parent | 374f6ff05e66d10830a7567d2d793de2bf77c06b (diff) | |
| download | uhd-81c9f77306dc82f250bfb2871b8bd7db67a40085.tar.gz uhd-81c9f77306dc82f250bfb2871b8bd7db67a40085.tar.bz2 uhd-81c9f77306dc82f250bfb2871b8bd7db67a40085.zip  | |
usrp2: implemented clear state for RX and TX control, and zero sample command support
Diffstat (limited to 'host/lib/usrp/usrp2/io_impl.cpp')
| -rw-r--r-- | host/lib/usrp/usrp2/io_impl.cpp | 25 | 
1 files changed, 0 insertions, 25 deletions
diff --git a/host/lib/usrp/usrp2/io_impl.cpp b/host/lib/usrp/usrp2/io_impl.cpp index 39e6c167f..844df603c 100644 --- a/host/lib/usrp/usrp2/io_impl.cpp +++ b/host/lib/usrp/usrp2/io_impl.cpp @@ -241,8 +241,6 @@ void usrp2_impl::io_impl::recv_pirate_loop(  /***********************************************************************   * Helper Functions   **********************************************************************/ -#include <uhd/usrp/mboard_props.hpp> //TODO remove when hack below is fixed -  void usrp2_impl::io_init(void){      //the assumption is that all data transports should be identical @@ -252,29 +250,6 @@ void usrp2_impl::io_init(void){      //create new io impl      _io_impl = UHD_PIMPL_MAKE(io_impl, (num_recv_frames, send_frame_size, _data_transports.size())); -    //TODO temporary fix for weird power up state, remove when FPGA fixed -    { -        //send an initial packet to all transports -        tx_metadata_t md; md.end_of_burst = true; -        this->send( -            std::vector<const void *>(_data_transports.size(), NULL), 0, md, -            io_type_t::COMPLEX_FLOAT32, device::SEND_MODE_ONE_PACKET, 0 -        ); - -        //issue a stream command to each motherboard -        BOOST_FOREACH(usrp2_mboard_impl::sptr mboard, _mboards){ -            (*mboard)[MBOARD_PROP_STREAM_CMD] = stream_cmd_t(stream_cmd_t::STREAM_MODE_STOP_CONTINUOUS); -        } - -        //wait -        boost::this_thread::sleep(boost::posix_time::milliseconds(100)); - -        //flush all transport receive queues (no timeout) -        BOOST_FOREACH(zero_copy_if::sptr xport, _data_transports){ -            while(xport->get_recv_buff(0).get() != NULL){}; -        } -    } -      //create a new pirate thread for each zc if (yarr!!)      for (size_t i = 0; i < _data_transports.size(); i++){          _io_impl->recv_pirate_crew.create_thread(boost::bind(  | 
