diff options
author | Josh Blum <josh@joshknows.com> | 2011-11-07 14:34:40 -0800 |
---|---|---|
committer | Josh Blum <josh@joshknows.com> | 2011-11-07 14:34:40 -0800 |
commit | 7c503ad1fab5fd6218847b1d030881b4d048379f (patch) | |
tree | d6abbbc47ad99a508c91777985f5a97bdd296981 /host/examples/rx_multi_samples.cpp | |
parent | f13e6effb973bcd35896f58af952f6192faae252 (diff) | |
download | uhd-7c503ad1fab5fd6218847b1d030881b4d048379f.tar.gz uhd-7c503ad1fab5fd6218847b1d030881b4d048379f.tar.bz2 uhd-7c503ad1fab5fd6218847b1d030881b4d048379f.zip |
uhd: modify examples to use new time/clock source API
Diffstat (limited to 'host/examples/rx_multi_samples.cpp')
-rw-r--r-- | host/examples/rx_multi_samples.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/host/examples/rx_multi_samples.cpp b/host/examples/rx_multi_samples.cpp index 7561f1285..42ef33d70 100644 --- a/host/examples/rx_multi_samples.cpp +++ b/host/examples/rx_multi_samples.cpp @@ -92,6 +92,7 @@ int UHD_SAFE_MAIN(int argc, char *argv[]){ usrp->set_time_now(uhd::time_spec_t(0.0)); } else if (sync == "pps"){ + usrp->set_time_source("external"); usrp->set_time_unknown_pps(uhd::time_spec_t(0.0)); boost::this_thread::sleep(boost::posix_time::seconds(1)); //wait for pps sync pulse } @@ -99,10 +100,8 @@ int UHD_SAFE_MAIN(int argc, char *argv[]){ UHD_ASSERT_THROW(usrp->get_num_mboards() == 2); //make mboard 1 a slave over the MIMO Cable - uhd::clock_config_t clock_config; - clock_config.ref_source = uhd::clock_config_t::REF_MIMO; - clock_config.pps_source = uhd::clock_config_t::PPS_MIMO; - usrp->set_clock_config(clock_config, 1); + usrp->set_clock_source("mimo", 1); + usrp->set_time_source("mimo", 1); //set time on the master (mboard 0) usrp->set_time_now(uhd::time_spec_t(0.0), 0); |