aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib/usrp/usrp2/usrp2_impl.cpp
diff options
context:
space:
mode:
authorJosh Blum <josh@joshknows.com>2011-03-08 18:31:49 -0800
committerJosh Blum <josh@joshknows.com>2011-03-08 18:31:49 -0800
commit74bc82979ac05c12482627693c29080079eb4a67 (patch)
treef5203dca416659542833287ba77d1b2ccb02b4eb /host/lib/usrp/usrp2/usrp2_impl.cpp
parent982aeee231396688fade022778cfb743cf185e89 (diff)
downloaduhd-74bc82979ac05c12482627693c29080079eb4a67.tar.gz
uhd-74bc82979ac05c12482627693c29080079eb4a67.tar.bz2
uhd-74bc82979ac05c12482627693c29080079eb4a67.zip
usrp2: comments for buffer size setting
Diffstat (limited to 'host/lib/usrp/usrp2/usrp2_impl.cpp')
-rw-r--r--host/lib/usrp/usrp2/usrp2_impl.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/host/lib/usrp/usrp2/usrp2_impl.cpp b/host/lib/usrp/usrp2/usrp2_impl.cpp
index f7154b0fc..14b26410d 100644
--- a/host/lib/usrp/usrp2/usrp2_impl.cpp
+++ b/host/lib/usrp/usrp2/usrp2_impl.cpp
@@ -164,7 +164,10 @@ static mtu_result_t determine_mtu(const std::string &addr){
);
mtu_result_t mtu;
- boost::uint8_t buffer[2000]; //FIXME use real FPGA buffer maximum
+ //The FPGA offers 4K buffers, and the user may manually request this.
+ //However, multiple simultaneous receives (2DSP slave + 2DSP master),
+ //require that buffering to be used internally, and this is a safe setting.
+ boost::uint8_t buffer[2000];
usrp2_ctrl_data_t *ctrl_data = reinterpret_cast<usrp2_ctrl_data_t *>(buffer);
static const double echo_timeout = 0.010; //10 ms