transceiver: update main to accommodate resampling
With the unified transceiver, we need to select between two device sample rates, GSM symbol rate and 400ksps for resampler use. Make this selection available for configure time options. Signed-off-by: Thomas Tsou <ttsou@vt.edu>
This commit is contained in:
parent
44fe0df73f
commit
03fd84469e
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright 2008, 2009 Free Software Foundation, Inc.
|
* Copyright 2008, 2009, 2010, 2011 Free Software Foundation, Inc.
|
||||||
*
|
*
|
||||||
* This software is distributed under the terms of the GNU Affero Public License.
|
* This software is distributed under the terms of the GNU Affero Public License.
|
||||||
* See the COPYING file in the main directory for details.
|
* See the COPYING file in the main directory for details.
|
||||||
|
@ -34,6 +34,12 @@
|
||||||
#include <Logger.h>
|
#include <Logger.h>
|
||||||
#include <Configuration.h>
|
#include <Configuration.h>
|
||||||
|
|
||||||
|
#ifdef RESAMPLE
|
||||||
|
#define DEVICERATE 400e3
|
||||||
|
#else
|
||||||
|
#define DEVICERATE 1625e3/6
|
||||||
|
#endif
|
||||||
|
|
||||||
using namespace std;
|
using namespace std;
|
||||||
|
|
||||||
ConfigurationTable gConfig;
|
ConfigurationTable gConfig;
|
||||||
|
@ -72,7 +78,7 @@ int main(int argc, char *argv[])
|
||||||
|
|
||||||
srandom(time(NULL));
|
srandom(time(NULL));
|
||||||
|
|
||||||
RadioDevice *usrp = RadioDevice::make(1625e3/6.0);
|
RadioDevice *usrp = RadioDevice::make(DEVICERATE);
|
||||||
if (!usrp->open()) {
|
if (!usrp->open()) {
|
||||||
//delete usrp;
|
//delete usrp;
|
||||||
return EXIT_FAILURE;
|
return EXIT_FAILURE;
|
||||||
|
|
Reference in New Issue