aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib
diff options
context:
space:
mode:
authorMartin Braun <martin.braun@ettus.com>2018-07-24 09:55:40 -0700
committerBrent Stapleton <bstapleton@g.hmc.edu>2018-08-10 10:16:36 -0700
commit2e838250863eb7f4e0c7d3800174b8ccc8dc2da9 (patch)
tree52f2d0a2aae0da4f0193ff314259917ab697e1bc /host/lib
parent016136f548220ad7bd5c34b8e25fc740a68aeb08 (diff)
downloaduhd-2e838250863eb7f4e0c7d3800174b8ccc8dc2da9.tar.gz
uhd-2e838250863eb7f4e0c7d3800174b8ccc8dc2da9.tar.bz2
uhd-2e838250863eb7f4e0c7d3800174b8ccc8dc2da9.zip
x300: Enable clock_source and time_source device args
You can now change the time/clock source default through device args: auto usrp = uhd::usrp::multi_usrp::make( "type=x300,clock_source=external,time_source=external"); This also enables the use of config files for the clock/time source implicitly.
Diffstat (limited to 'host/lib')
-rw-r--r--host/lib/usrp/x300/x300_impl.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/host/lib/usrp/x300/x300_impl.cpp b/host/lib/usrp/x300/x300_impl.cpp
index 22ebdf546..9b0fe9a51 100644
--- a/host/lib/usrp/x300/x300_impl.cpp
+++ b/host/lib/usrp/x300/x300_impl.cpp
@@ -981,7 +981,7 @@ void x300_impl::setup_mb(const size_t mb_i, const uhd::device_addr_t &dev_addr)
// setup time sources and properties
////////////////////////////////////////////////////////////////////
_tree->create<std::string>(mb_path / "time_source" / "value")
- .set("internal")
+ .set(mb.args.get_time_source())
.add_coerced_subscriber([this, &mb](const std::string& time_source){
this->update_time_source(mb, time_source);
})
@@ -1003,7 +1003,7 @@ void x300_impl::setup_mb(const size_t mb_i, const uhd::device_addr_t &dev_addr)
// setup clock sources and properties
////////////////////////////////////////////////////////////////////
_tree->create<std::string>(mb_path / "clock_source" / "value")
- .set(x300::DEFAULT_TIME_SOURCE)
+ .set(mb.args.get_clock_source())
.add_coerced_subscriber([this, &mb](const std::string& clock_source){
this->update_clock_source(mb, clock_source);
})