aboutsummaryrefslogtreecommitdiffstats
path: root/Transceiver52M
diff options
context:
space:
mode:
authorkurtis.heimerl <kurtis.heimerl@19bc5d8c-e614-43d4-8b26-e1612bc8e597>2011-11-26 03:19:19 +0000
committerkurtis.heimerl <kurtis.heimerl@19bc5d8c-e614-43d4-8b26-e1612bc8e597>2011-11-26 03:19:19 +0000
commitc6b9b7014fffe16bfeedcd47827c8f3dbe02a4de (patch)
treeaa4b3e620dc27c602a641f14509ece371b1f1dba /Transceiver52M
parentd3d4af3b4d3cbb7c231330d4f73d608f45f75728 (diff)
transceiver: uhd: make external reference a compile time option
External reference selection was already compile-time determined by a hard coded value. Make it selectable as a configure option. Signed-off-by: Thomas Tsou <ttsou@vt.edu> git-svn-id: http://wush.net/svn/range/software/public/openbts/trunk@2686 19bc5d8c-e614-43d4-8b26-e1612bc8e597
Diffstat (limited to 'Transceiver52M')
-rw-r--r--Transceiver52M/UHDDevice.cpp10
1 files changed, 4 insertions, 6 deletions
diff --git a/Transceiver52M/UHDDevice.cpp b/Transceiver52M/UHDDevice.cpp
index 567a836..2dccb59 100644
--- a/Transceiver52M/UHDDevice.cpp
+++ b/Transceiver52M/UHDDevice.cpp
@@ -32,8 +32,6 @@
#endif
/*
- use_ext_ref - Enable external 10MHz clock reference
-
master_clk_rt - Master clock frequency - ignored if host resampling is
enabled
@@ -46,7 +44,6 @@
tx_ampl - Transmit amplitude must be between 0 and 1.0
*/
-const bool use_ext_ref = false;
const double master_clk_rt = 52e6;
const size_t smpl_buf_sz = (1 << 20);
const float tx_ampl = .3;
@@ -426,6 +423,10 @@ bool uhd_device::open()
return false;
}
+#ifdef EXTREF
+ set_ref_clk(true);
+#endif
+
// Number of samples per over-the-wire packet
tx_spp = usrp_dev->get_device()->get_max_send_samps_per_packet();
rx_spp = usrp_dev->get_device()->get_max_recv_samps_per_packet();
@@ -445,9 +446,6 @@ bool uhd_device::open()
// Initialize and shadow gain values
init_gains();
- // Set reference clock
- set_ref_clk(use_ext_ref);
-
// Print configuration
LOG(INFO) << "\n" << usrp_dev->get_pp_string();