aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib/usrp/usrp2/usrp2_impl.cpp
diff options
context:
space:
mode:
authorJosh Blum <josh@joshknows.com>2010-10-11 16:31:51 -0700
committerJosh Blum <josh@joshknows.com>2010-10-11 16:31:51 -0700
commit453b450aa2f40f1ab3689855654fd2167f554ccc (patch)
tree7a5fd3d4b46734cd708e7881fd375f77528b6806 /host/lib/usrp/usrp2/usrp2_impl.cpp
parent37f1f1451f65aace9ca978ac3edcaa31d16e8c0d (diff)
downloaduhd-453b450aa2f40f1ab3689855654fd2167f554ccc.tar.gz
uhd-453b450aa2f40f1ab3689855654fd2167f554ccc.tar.bz2
uhd-453b450aa2f40f1ab3689855654fd2167f554ccc.zip
usrp2: implemented flow control monitor
set registers in mboard impl to enable asyn fc packets modified microblaze code to handle dummy data packet offset
Diffstat (limited to 'host/lib/usrp/usrp2/usrp2_impl.cpp')
-rw-r--r--host/lib/usrp/usrp2/usrp2_impl.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/host/lib/usrp/usrp2/usrp2_impl.cpp b/host/lib/usrp/usrp2/usrp2_impl.cpp
index 8429a2593..79bf2b260 100644
--- a/host/lib/usrp/usrp2/usrp2_impl.cpp
+++ b/host/lib/usrp/usrp2/usrp2_impl.cpp
@@ -173,7 +173,9 @@ usrp2_impl::usrp2_impl(
//create a new mboard handler for each control transport
for(size_t i = 0; i < ctrl_transports.size(); i++){
_mboards.push_back(usrp2_mboard_impl::sptr(new usrp2_mboard_impl(
- i, ctrl_transports[i], this->get_max_recv_samps_per_packet()
+ i, ctrl_transports[i],
+ this->get_max_recv_samps_per_packet(),
+ _data_transports[i]->get_send_frame_size()
)));
//use an empty name when there is only one mboard
std::string name = (ctrl_transports.size() > 1)? boost::lexical_cast<std::string>(i) : "";