diff options
author | Josh Blum <josh@joshknows.com> | 2011-12-12 12:49:40 -0800 |
---|---|---|
committer | Josh Blum <josh@joshknows.com> | 2011-12-12 12:49:40 -0800 |
commit | 84ebf02b2bdacffccc9e5fa3096477d86b9ac152 (patch) | |
tree | b40fc4c98c2d86c577ee51784741d45f44b73836 /host/lib | |
parent | b433c25b1934fd2de60b6aa394eb741daa997649 (diff) | |
download | uhd-84ebf02b2bdacffccc9e5fa3096477d86b9ac152.tar.gz uhd-84ebf02b2bdacffccc9e5fa3096477d86b9ac152.tar.bz2 uhd-84ebf02b2bdacffccc9e5fa3096477d86b9ac152.zip |
usrp: added mboard param to set time next pps
Diffstat (limited to 'host/lib')
-rw-r--r-- | host/lib/usrp/multi_usrp.cpp | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/host/lib/usrp/multi_usrp.cpp b/host/lib/usrp/multi_usrp.cpp index 6fd60fb6f..6cd9f95bb 100644 --- a/host/lib/usrp/multi_usrp.cpp +++ b/host/lib/usrp/multi_usrp.cpp @@ -304,9 +304,13 @@ public: } } - void set_time_next_pps(const time_spec_t &time_spec){ + void set_time_next_pps(const time_spec_t &time_spec, size_t mboard){ + if (mboard != ALL_MBOARDS){ + _tree->access<time_spec_t>(mb_root(mboard) / "time/pps").set(time_spec); + return; + } for (size_t m = 0; m < get_num_mboards(); m++){ - _tree->access<time_spec_t>(mb_root(m) / "time/pps").set(time_spec); + set_time_next_pps(time_spec, m); } } @@ -326,7 +330,7 @@ public: } UHD_MSG(status) << " 2) set times next pps (synchronously)" << std::endl; - set_time_next_pps(time_spec); + set_time_next_pps(time_spec, ALL_MBOARDS); boost::this_thread::sleep(boost::posix_time::seconds(1)); //verify that the time registers are read to be within a few RTT |