From 84ebf02b2bdacffccc9e5fa3096477d86b9ac152 Mon Sep 17 00:00:00 2001 From: Josh Blum Date: Mon, 12 Dec 2011 12:49:40 -0800 Subject: usrp: added mboard param to set time next pps --- host/lib/usrp/multi_usrp.cpp | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'host/lib/usrp') 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(mb_root(mboard) / "time/pps").set(time_spec); + return; + } for (size_t m = 0; m < get_num_mboards(); m++){ - _tree->access(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 -- cgit v1.2.3