diff options
author | Josh Blum <josh@joshknows.com> | 2011-01-13 15:04:38 -0800 |
---|---|---|
committer | Josh Blum <josh@joshknows.com> | 2011-01-13 15:04:38 -0800 |
commit | 641ab2399a994b6e767985adfbd8f7a916401206 (patch) | |
tree | 78a9ec8cbe84ed1dd9ab6c981b40bd468452e62b /host/lib/usrp/usrp2 | |
parent | ee0edffb94c9d28b2450971eca17333a7dba949e (diff) | |
download | uhd-641ab2399a994b6e767985adfbd8f7a916401206.tar.gz uhd-641ab2399a994b6e767985adfbd8f7a916401206.tar.bz2 uhd-641ab2399a994b6e767985adfbd8f7a916401206.zip |
usrp2: different clock delays for usrp2 and usrp-n210
Diffstat (limited to 'host/lib/usrp/usrp2')
-rw-r--r-- | host/lib/usrp/usrp2/mboard_impl.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/host/lib/usrp/usrp2/mboard_impl.cpp b/host/lib/usrp/usrp2/mboard_impl.cpp index 44f60d686..6d5652e9e 100644 --- a/host/lib/usrp/usrp2/mboard_impl.cpp +++ b/host/lib/usrp/usrp2/mboard_impl.cpp @@ -26,7 +26,8 @@ #include <boost/bind.hpp> #include <iostream> -static const double mimo_clock_delay_usrp_all = 4.18e-9; +static const double mimo_clock_delay_usrp2_rev4 = 4.18e-9; +static const double mimo_clock_delay_usrp_n2xx = 3.55e-9; static const size_t mimo_clock_sync_delay_cycles = 137; using namespace uhd; @@ -216,8 +217,11 @@ void usrp2_mboard_impl::update_clock_config(void){ switch(_iface->get_rev()){ case usrp2_iface::USRP_N200: case usrp2_iface::USRP_N210: + _clock_ctrl->set_mimo_clock_delay(mimo_clock_delay_usrp_n2xx); + break; + case usrp2_iface::USRP2_REV4: - _clock_ctrl->set_mimo_clock_delay(mimo_clock_delay_usrp_all); + _clock_ctrl->set_mimo_clock_delay(mimo_clock_delay_usrp2_rev4); break; default: break; //not handled |