laforge
/
openbts-osmo
Archived
1
0
Fork 0

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:
Thomas Tsou 2011-10-19 21:06:07 -04:00
parent 44fe0df73f
commit 03fd84469e
1 changed files with 8 additions and 2 deletions

View File

@ -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.
* See the COPYING file in the main directory for details.
@ -34,6 +34,12 @@
#include <Logger.h>
#include <Configuration.h>
#ifdef RESAMPLE
#define DEVICERATE 400e3
#else
#define DEVICERATE 1625e3/6
#endif
using namespace std;
ConfigurationTable gConfig;
@ -72,7 +78,7 @@ int main(int argc, char *argv[])
srandom(time(NULL));
RadioDevice *usrp = RadioDevice::make(1625e3/6.0);
RadioDevice *usrp = RadioDevice::make(DEVICERATE);
if (!usrp->open()) {
//delete usrp;
return EXIT_FAILURE;