aboutsummaryrefslogtreecommitdiffstats
path: root/Transceiver52M/USRPDevice.cpp
diff options
context:
space:
mode:
authorkurtis.heimerl <kurtis.heimerl@19bc5d8c-e614-43d4-8b26-e1612bc8e597>2011-11-26 03:19:22 +0000
committerkurtis.heimerl <kurtis.heimerl@19bc5d8c-e614-43d4-8b26-e1612bc8e597>2011-11-26 03:19:22 +0000
commit3758b16aa46dc8c90a471c29d90b2fa99a48968b (patch)
tree92a39c7a5cd3587f075f7996170f595afa4515e3 /Transceiver52M/USRPDevice.cpp
parentc6b9b7014fffe16bfeedcd47827c8f3dbe02a4de (diff)
transceiver: usrp1: select single dboard use at compile time
The following option selects single daughterboard use on side A only. Otherwise, the default setting is TX on A and Rx on B. ./configure --with-singledb Other options are possible, as per the following enum, but for simplicity with configure options, there are only two choices. enum dboardConfigType { TXA_RXB, TXB_RXA, TXA_RXA, TXB_RXB }; Signed-off-by: Thomas Tsou <ttsou@vt.edu> git-svn-id: http://wush.net/svn/range/software/public/openbts/trunk@2687 19bc5d8c-e614-43d4-8b26-e1612bc8e597
Diffstat (limited to 'Transceiver52M/USRPDevice.cpp')
-rw-r--r--Transceiver52M/USRPDevice.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/Transceiver52M/USRPDevice.cpp b/Transceiver52M/USRPDevice.cpp
index ff5af40..175b187 100644
--- a/Transceiver52M/USRPDevice.cpp
+++ b/Transceiver52M/USRPDevice.cpp
@@ -38,6 +38,9 @@
#include <Logger.h>
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
using namespace std;
@@ -48,7 +51,12 @@ enum dboardConfigType {
TXB_RXB
};
+#ifdef SINGLEDB
+const dboardConfigType dboardConfig = TXA_RXA;
+#else
const dboardConfigType dboardConfig = TXA_RXB;
+#endif
+
const double USRPDevice::masterClockRate = 52.0e6;
USRPDevice::USRPDevice (double _desiredSampleRate, bool skipRx)