summaryrefslogtreecommitdiffstats
path: root/host/lib
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
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')
-rw-r--r--host/lib/usrp/usrp_e100/clock_ctrl.cpp1
-rw-r--r--host/lib/usrp/usrp_e100/mboard_impl.cpp5
2 files changed, 1 insertions, 5 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){
diff --git a/host/lib/usrp/usrp_e100/mboard_impl.cpp b/host/lib/usrp/usrp_e100/mboard_impl.cpp
index cec4fd0ad..29e3c5da2 100644
--- a/host/lib/usrp/usrp_e100/mboard_impl.cpp
+++ b/host/lib/usrp/usrp_e100/mboard_impl.cpp
@@ -36,11 +36,6 @@ void usrp_e100_impl::mboard_init(void){
boost::bind(&usrp_e100_impl::mboard_set, this, _1, _2)
);
- //set the ticks per seconds into the vita time control
- _iface->poke32(UE_REG_TIME64_TPS,
- boost::uint32_t(_clock_ctrl->get_fpga_clock_rate())
- );
-
//init the clock config
_clock_config = clock_config_t::internal();
update_clock_config();