diff options
author | Josh Blum <josh@joshknows.com> | 2010-04-05 12:18:17 -0700 |
---|---|---|
committer | Josh Blum <josh@joshknows.com> | 2010-04-05 12:18:17 -0700 |
commit | 12aa8ad74cf3a343159ddbb452455bf4e7f435b8 (patch) | |
tree | 69b6928826b73d9a8adcfa62d8301ce28b95c11a /host/lib/usrp/usrp2/mboard_impl.cpp | |
parent | 83bd55d63972804e62f3890a4a90c8288fcbad0c (diff) | |
download | uhd-12aa8ad74cf3a343159ddbb452455bf4e7f435b8.tar.gz uhd-12aa8ad74cf3a343159ddbb452455bf4e7f435b8.tar.bz2 uhd-12aa8ad74cf3a343159ddbb452455bf4e7f435b8.zip |
added 16 bit peek and poke, 16 bit register defs for gpios and atrs
Diffstat (limited to 'host/lib/usrp/usrp2/mboard_impl.cpp')
-rw-r--r-- | host/lib/usrp/usrp2/mboard_impl.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/host/lib/usrp/usrp2/mboard_impl.cpp b/host/lib/usrp/usrp2/mboard_impl.cpp index 7594c85fa..ceb2ec98f 100644 --- a/host/lib/usrp/usrp2/mboard_impl.cpp +++ b/host/lib/usrp/usrp2/mboard_impl.cpp @@ -67,19 +67,19 @@ void usrp2_impl::update_clock_config(void){ } //set the pps flags - this->poke(FR_TIME64_FLAGS, pps_flags); + this->poke32(FR_TIME64_FLAGS, pps_flags); //TODO clock source ref 10mhz (spi ad9510) } void usrp2_impl::set_time_spec(const time_spec_t &time_spec, bool now){ //set ticks and seconds - this->poke(FR_TIME64_SECS, time_spec.secs); - this->poke(FR_TIME64_TICKS, time_spec.ticks); + this->poke32(FR_TIME64_SECS, time_spec.secs); + this->poke32(FR_TIME64_TICKS, time_spec.ticks); //set the register to latch it all in boost::uint32_t imm_flags = (now)? FRF_TIME64_LATCH_NOW : FRF_TIME64_LATCH_NEXT_PPS; - this->poke(FR_TIME64_IMM, imm_flags); + this->poke32(FR_TIME64_IMM, imm_flags); } /*********************************************************************** |