diff options
author | Josh Blum <josh@joshknows.com> | 2011-05-20 10:49:52 -0700 |
---|---|---|
committer | Josh Blum <josh@joshknows.com> | 2011-05-20 10:49:52 -0700 |
commit | 0f705316752a911ed031a479355e44f922222970 (patch) | |
tree | 4597cd730eb2df684e058967e3a6fc43b537ba7b /host/lib/usrp/usrp2/mboard_impl.cpp | |
parent | df020c6923aae830a20a2405c9de086b22e7c5f0 (diff) | |
download | uhd-0f705316752a911ed031a479355e44f922222970.tar.gz uhd-0f705316752a911ed031a479355e44f922222970.tar.bz2 uhd-0f705316752a911ed031a479355e44f922222970.zip |
usrp2: turn on ups_per_sec to avoid timeout issues on low sample rates
Diffstat (limited to 'host/lib/usrp/usrp2/mboard_impl.cpp')
-rw-r--r-- | host/lib/usrp/usrp2/mboard_impl.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/host/lib/usrp/usrp2/mboard_impl.cpp b/host/lib/usrp/usrp2/mboard_impl.cpp index 2885e57e4..027cb5f78 100644 --- a/host/lib/usrp/usrp2/mboard_impl.cpp +++ b/host/lib/usrp/usrp2/mboard_impl.cpp @@ -116,7 +116,7 @@ usrp2_mboard_impl::usrp2_mboard_impl( dsp_init(); //setting the cycles per update (disabled by default) - const double ups_per_sec = device_addr.cast<double>("ups_per_sec", 0.0); + const double ups_per_sec = device_addr.cast<double>("ups_per_sec", 20); if (ups_per_sec > 0.0){ const size_t cycles_per_up = size_t(_clock_ctrl->get_master_clock_rate()/ups_per_sec); _iface->poke32(U2_REG_TX_CTRL_CYCLES_PER_UP, U2_FLAG_TX_CTRL_UP_ENB | cycles_per_up); |