diff options
author | Josh Blum <josh@joshknows.com> | 2010-10-11 16:31:51 -0700 |
---|---|---|
committer | Josh Blum <josh@joshknows.com> | 2010-10-11 16:31:51 -0700 |
commit | 453b450aa2f40f1ab3689855654fd2167f554ccc (patch) | |
tree | 7a5fd3d4b46734cd708e7881fd375f77528b6806 /host/lib/usrp/usrp2/usrp2_impl.cpp | |
parent | 37f1f1451f65aace9ca978ac3edcaa31d16e8c0d (diff) | |
download | uhd-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.cpp | 4 |
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) : ""; |