diff options
author | Josh Blum <josh@joshknows.com> | 2012-02-29 16:28:56 -0800 |
---|---|---|
committer | Josh Blum <josh@joshknows.com> | 2012-03-23 14:36:55 -0700 |
commit | fe0a5162cd5a08c6cd0b1abdda32abdd18e34bbc (patch) | |
tree | 60eef713ae44d10a0840505a0f6fe94739645b8d /host/lib/usrp/usrp2/usrp2_impl.cpp | |
parent | e4d3f63ce0bb04287a61e9547acfa02a50e84326 (diff) | |
download | uhd-fe0a5162cd5a08c6cd0b1abdda32abdd18e34bbc.tar.gz uhd-fe0a5162cd5a08c6cd0b1abdda32abdd18e34bbc.tar.bz2 uhd-fe0a5162cd5a08c6cd0b1abdda32abdd18e34bbc.zip |
usrp2: host and fw implementation for fifo control
Diffstat (limited to 'host/lib/usrp/usrp2/usrp2_impl.cpp')
-rw-r--r-- | host/lib/usrp/usrp2/usrp2_impl.cpp | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/host/lib/usrp/usrp2/usrp2_impl.cpp b/host/lib/usrp/usrp2/usrp2_impl.cpp index 20a74db2c..5e873f741 100644 --- a/host/lib/usrp/usrp2/usrp2_impl.cpp +++ b/host/lib/usrp/usrp2/usrp2_impl.cpp @@ -377,8 +377,15 @@ usrp2_impl::usrp2_impl(const device_addr_t &_device_addr){ _mbc[mb].tx_dsp_xport = make_xport( addr, BOOST_STRINGIZE(USRP2_UDP_TX_DSP0_PORT), device_args_i, "send" ); + UHD_LOG << "Making transport for Control..." << std::endl; + _mbc[mb].fifo_ctrl_xport = make_xport( + addr, BOOST_STRINGIZE(USRP2_UDP_FIFO_CRTL_PORT), device_addr_t(), "" + ); //set the filter on the router to take dsp data from this port - _mbc[mb].iface->poke32(U2_REG_ROUTER_CTRL_PORTS, USRP2_UDP_TX_DSP0_PORT); + _mbc[mb].iface->poke32(U2_REG_ROUTER_CTRL_PORTS, (USRP2_UDP_FIFO_CRTL_PORT << 16) | USRP2_UDP_TX_DSP0_PORT); + + //create the fifo control interface for high speed register access + _mbc[mb].fifo_ctrl = usrp2_fifo_ctrl::make(_mbc[mb].fifo_ctrl_xport); //////////////////////////////////////////////////////////////// // setup the mboard eeprom |