mirror of
https://github.com/RangeNetworks/openbts.git
synced 2025-11-16 11:21:28 +00:00
Transceiver52M: Remove periodic alignment update from UHD build
Periodic timing alignment should never be required for UHD devices, though the mechanism was used as a fallback mechanism should UHD not properly recover after an underrun - as may occur in old 003.003.000 based revisions. This issue is not a concern in more recent UHD releases and deprecates this code for legacy USRP1 use only. Signed-off-by: Thomas Tsou <tom@tsou.cc> git-svn-id: http://wush.net/svn/range/software/public/openbts/trunk@6721 19bc5d8c-e614-43d4-8b26-e1612bc8e597
This commit is contained in:
@@ -118,8 +118,10 @@ bool RadioInterface::tuneRx(double freq)
|
||||
void RadioInterface::start()
|
||||
{
|
||||
LOG(INFO) << "starting radio interface...";
|
||||
#ifdef USRP1
|
||||
mAlignRadioServiceLoopThread.start((void * (*)(void*))AlignRadioServiceLoopAdapter,
|
||||
(void*)this);
|
||||
#endif
|
||||
writeTimestamp = mRadio->initialWriteTimestamp();
|
||||
readTimestamp = mRadio->initialReadTimestamp();
|
||||
mRadio->start();
|
||||
@@ -134,6 +136,7 @@ void RadioInterface::start()
|
||||
|
||||
}
|
||||
|
||||
#ifdef USRP1
|
||||
void *AlignRadioServiceLoopAdapter(RadioInterface *radioInterface)
|
||||
{
|
||||
while (1) {
|
||||
@@ -147,6 +150,7 @@ void RadioInterface::alignRadio() {
|
||||
sleep(60);
|
||||
mRadio->updateAlignment(writeTimestamp+ (TIMESTAMP) 10000);
|
||||
}
|
||||
#endif
|
||||
|
||||
void RadioInterface::driveTransmitRadio(signalVector &radioBurst, bool zeroBurst) {
|
||||
|
||||
@@ -218,14 +222,6 @@ bool RadioInterface::isUnderrun()
|
||||
return retVal;
|
||||
}
|
||||
|
||||
void RadioInterface::attach(RadioDevice *wRadio, int wRadioOversampling)
|
||||
{
|
||||
if (!mOn) {
|
||||
mRadio = wRadio;
|
||||
mRadioOversampling = SAMPSPERSYM;
|
||||
}
|
||||
}
|
||||
|
||||
double RadioInterface::setRxGain(double dB)
|
||||
{
|
||||
if (mRadio)
|
||||
|
||||
Reference in New Issue
Block a user