diff options
author | Josh Blum <josh@joshknows.com> | 2010-10-27 15:57:35 -0700 |
---|---|---|
committer | Josh Blum <josh@joshknows.com> | 2010-10-27 15:57:35 -0700 |
commit | 0208b28e58e3719dc4dfb8df73fe5ae49e4a6306 (patch) | |
tree | 346b6e149f19e88125fe4197e39f83855ce65ecf /host/lib/usrp/usrp_e/mboard_impl.cpp | |
parent | fa7704be20005a705efdc96aa785d80911638107 (diff) | |
download | uhd-0208b28e58e3719dc4dfb8df73fe5ae49e4a6306.tar.gz uhd-0208b28e58e3719dc4dfb8df73fe5ae49e4a6306.tar.bz2 uhd-0208b28e58e3719dc4dfb8df73fe5ae49e4a6306.zip |
usrp-e: use clock control to get clock rate, removed temporary constant
Diffstat (limited to 'host/lib/usrp/usrp_e/mboard_impl.cpp')
-rw-r--r-- | host/lib/usrp/usrp_e/mboard_impl.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/host/lib/usrp/usrp_e/mboard_impl.cpp b/host/lib/usrp/usrp_e/mboard_impl.cpp index 3d4cef069..f0118aa4b 100644 --- a/host/lib/usrp/usrp_e/mboard_impl.cpp +++ b/host/lib/usrp/usrp_e/mboard_impl.cpp @@ -125,7 +125,7 @@ void usrp_e_impl::mboard_set(const wax::obj &key, const wax::obj &val){ case MBOARD_PROP_TIME_NOW: case MBOARD_PROP_TIME_NEXT_PPS:{ time_spec_t time_spec = val.as<time_spec_t>(); - _iface->poke32(UE_REG_TIME64_TICKS, time_spec.get_tick_count(MASTER_CLOCK_RATE)); + _iface->poke32(UE_REG_TIME64_TICKS, time_spec.get_tick_count(_clock_ctrl->get_fpga_clock_rate())); boost::uint32_t imm_flags = (key.as<mboard_prop_t>() == MBOARD_PROP_TIME_NOW)? 1 : 0; _iface->poke32(UE_REG_TIME64_IMM, imm_flags); _iface->poke32(UE_REG_TIME64_SECS, time_spec.get_full_secs()); |