diff options
author | Matthias P. Braendli <matthias.braendli@mpb.li> | 2016-07-15 11:43:17 +0200 |
---|---|---|
committer | Matthias P. Braendli <matthias.braendli@mpb.li> | 2016-07-15 11:43:17 +0200 |
commit | 7149658fbbee12114429183f8015effd5f59a5f6 (patch) | |
tree | 62e75341dc133dad46950be665fa603886d0415f /host/lib/usrp/b200/b200_cores.cpp | |
parent | 416ac19e94d684111517df7f371810fbc469603c (diff) | |
download | uhd-7149658fbbee12114429183f8015effd5f59a5f6.tar.gz uhd-7149658fbbee12114429183f8015effd5f59a5f6.tar.bz2 uhd-7149658fbbee12114429183f8015effd5f59a5f6.zip |
Autoconfigure refclk frequency if LEA-M8F detectedlea-m8f-003_009_004
This should make this branch compatible with both Ettus GPSDO
using 10MHz refclk and the LEA-M8F using 30.72MHz
Diffstat (limited to 'host/lib/usrp/b200/b200_cores.cpp')
-rw-r--r-- | host/lib/usrp/b200/b200_cores.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/host/lib/usrp/b200/b200_cores.cpp b/host/lib/usrp/b200/b200_cores.cpp index 19e637ef4..734e4cb2f 100644 --- a/host/lib/usrp/b200/b200_cores.cpp +++ b/host/lib/usrp/b200/b200_cores.cpp @@ -74,6 +74,13 @@ void b200_ref_pll_ctrl::set_lock_to_ext_ref(bool external) _spi->restore_perif(); } +bool b200_ref_pll_ctrl::set_refclk_frequency(int refclk_kHz) +{ + _spi->change_perif(b200_local_spi_core::PLL); + bool success = adf4001_ctrl::set_refclk_frequency(refclk_kHz); + _spi->restore_perif(); + return success; +} b200_local_spi_core::sptr b200_local_spi_core::make( uhd::wb_iface::sptr iface, b200_local_spi_core::perif_t default_perif) |