diff --git a/public-trunk/Transceiver52M/USRPDevice.cpp b/public-trunk/Transceiver52M/USRPDevice.cpp index 4abc4b0..e20955d 100644 --- a/public-trunk/Transceiver52M/USRPDevice.cpp +++ b/public-trunk/Transceiver52M/USRPDevice.cpp @@ -39,6 +39,9 @@ #include +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif using namespace std; @@ -49,7 +52,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) diff --git a/public-trunk/configure.ac b/public-trunk/configure.ac index 6a83482..1261daf 100644 --- a/public-trunk/configure.ac +++ b/public-trunk/configure.ac @@ -62,6 +62,11 @@ AC_ARG_WITH(usrp1, [ [enable USRP1 gnuradio based transceiver]) ]) +AC_ARG_WITH(singledb, [ + AS_HELP_STRING([--with-singledb], + [enable single daughterboard use on USRP1]) +]) + AC_ARG_WITH(resamp, [ AS_HELP_STRING([--with-resamp], [enable resampling for non-52MHz devices]) @@ -98,6 +103,10 @@ AS_IF([test "x$with_extref" = "xyes"], [ AC_DEFINE(EXTREF, 1, Define to 1 for external reference) ]) +AS_IF([test "x$with_singledb" = "xyes"], [ + AC_DEFINE(SINGLEDB, 1, Define to 1 for single daughterboard) +]) + AM_CONDITIONAL(RESAMPLE, [test "x$with_resamp" = "xyes"]) AM_CONDITIONAL(UHD, [test "x$with_usrp1" != "xyes"])