diff options
| author | Martin Braun <martin.braun@ettus.com> | 2016-10-12 15:37:16 -0700 | 
|---|---|---|
| committer | mbr0wn <martin.braun@ettus.com> | 2016-10-13 16:06:19 -0700 | 
| commit | 3bc168d7d3333a93e3f4b77a213d4b7ac0bc594f (patch) | |
| tree | 76eb5d51d9c45b17968ac07486ad9f7a35740521 | |
| parent | 6112e6590db491350442b574566cb7a55c0e9bfd (diff) | |
| download | uhd-3bc168d7d3333a93e3f4b77a213d4b7ac0bc594f.tar.gz uhd-3bc168d7d3333a93e3f4b77a213d4b7ac0bc594f.tar.bz2 uhd-3bc168d7d3333a93e3f4b77a213d4b7ac0bc594f.zip | |
x300: Add time sync procedure to device initialization
Reviewed-By: Derek Kozel <derek.kozel@ettus.com>
| -rw-r--r-- | host/lib/usrp/x300/x300_impl.cpp | 10 | 
1 files changed, 9 insertions, 1 deletions
| diff --git a/host/lib/usrp/x300/x300_impl.cpp b/host/lib/usrp/x300/x300_impl.cpp index e4f6d6fb8..776fac928 100644 --- a/host/lib/usrp/x300/x300_impl.cpp +++ b/host/lib/usrp/x300/x300_impl.cpp @@ -986,9 +986,17 @@ void x300_impl::setup_mb(const size_t mb_i, const uhd::device_addr_t &dev_addr)                  mb.radios.at(i)->self_test_adc();              }          } + +        //////////////////////////////////////////////////////////////////// +        // Synchronize times (dboard initialization can desynchronize them) +        //////////////////////////////////////////////////////////////////// +        if (radio_ids.size() == 2) { +            this->sync_times(mb, mb.radios[0]->get_time_now()); +        } +      } else {          UHD_MSG(status) << "No Radio Block found. Assuming radio-less operation." << std::endl; -    } +    } /* end of radio block(s) initialization */      mb.initialization_done = true;  } | 
