aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib/usrp/usrp_e100/clock_ctrl.cpp
diff options
context:
space:
mode:
authorJosh Blum <josh@joshknows.com>2011-03-29 11:38:38 -0700
committerJosh Blum <josh@joshknows.com>2011-03-29 11:38:38 -0700
commita2a78451d196a7f52a3e2a3bda94f52d127313d0 (patch)
tree340b021c9b7168cd1ba05d789a42d1850f217eba /host/lib/usrp/usrp_e100/clock_ctrl.cpp
parent9d91d5518751d37b32c86fe4f0c17f0b480fd0bb (diff)
downloaduhd-a2a78451d196a7f52a3e2a3bda94f52d127313d0.tar.gz
uhd-a2a78451d196a7f52a3e2a3bda94f52d127313d0.tar.bz2
uhd-a2a78451d196a7f52a3e2a3bda94f52d127313d0.zip
usrp-e100: set the ticks-per-second every time we change clock rate
Diffstat (limited to 'host/lib/usrp/usrp_e100/clock_ctrl.cpp')
-rw-r--r--host/lib/usrp/usrp_e100/clock_ctrl.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/host/lib/usrp/usrp_e100/clock_ctrl.cpp b/host/lib/usrp/usrp_e100/clock_ctrl.cpp
index aba630d88..b0bf20b67 100644
--- a/host/lib/usrp/usrp_e100/clock_ctrl.cpp
+++ b/host/lib/usrp/usrp_e100/clock_ctrl.cpp
@@ -287,6 +287,7 @@ public:
if (_out_rate == rate) return;
if (rate == 61.44e6) set_clock_settings_with_external_vcxo(rate);
else set_clock_settings_with_internal_vco(rate);
+ _iface->poke32(UE_REG_TIME64_TPS, boost::uint32_t(get_fpga_clock_rate()));
}
double get_fpga_clock_rate(void){