-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from softwareradiosystems/next_lime
adding native lime, soapy, decimation filtering and neon optimizations
- Loading branch information
Showing
25 changed files
with
2,196 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
if(NOT LIMESDR_FOUND) | ||
pkg_check_modules (LIMESDR_PKG LimeSuite) | ||
|
||
find_path(LIMESDR_INCLUDE_DIRS | ||
NAMES LimeSuite.h | ||
PATHS ${LIMESDR_PKG_INCLUDE_DIRS} | ||
/usr/include/lime | ||
/usr/local/include/lime | ||
) | ||
|
||
find_library(LIMESDR_LIBRARIES | ||
NAMES LimeSuite | ||
PATHS ${LIMESDR_PKG_LIBRARY_DIRS} | ||
/usr/lib | ||
/usr/local/lib | ||
) | ||
|
||
if(LIMESDR_INCLUDE_DIRS AND LIMESDR_LIBRARIES) | ||
set(LIMESDR_FOUND TRUE CACHE INTERNAL "libLimeSuite found") | ||
message(STATUS "Found libLimeSuite: ${LIMESDR_INCLUDE_DIRS}, ${LIMESDR_LIBRARIES}") | ||
else(LIMESDR_INCLUDE_DIRS AND LIMESDR_LIBRARIES) | ||
set(LIMESDR_FOUND FALSE CACHE INTERNAL "libLimeSuite found") | ||
message(STATUS "libLimeSuite not found.") | ||
endif(LIMESDR_INCLUDE_DIRS AND LIMESDR_LIBRARIES) | ||
|
||
mark_as_advanced(LIMESDR_LIBRARIES LIMESDR_INCLUDE_DIRS) | ||
|
||
endif(NOT LIMESDR_FOUND) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
|
||
message(STATUS "FINDING SOAPY.") | ||
if(NOT SOAPYSDR_FOUND) | ||
pkg_check_modules (SOAPYSDR_PKG SoapySDR) | ||
|
||
find_path(SOAPYSDR_INCLUDE_DIRS | ||
NAMES Device.h | ||
PATHS ${SOAPYSDR_PKG_INCLUDE_DIRS} | ||
/usr/include/SoapySDR | ||
/usr/include/local/SoapySDR | ||
) | ||
|
||
find_library(SOAPYSDR_LIBRARIES | ||
NAMES SoapySDR | ||
PATHS ${LIMESDR_PKG_LIBRARY_DIRS} | ||
/usr/lib | ||
/usr/local/lib | ||
|
||
) | ||
|
||
if(SOAPYSDR_INCLUDE_DIRS AND SOAPYSDR_LIBRARIES) | ||
set(SOAPYSDR_FOUND TRUE CACHE INTERNAL "libSOAPYSDR found") | ||
message(STATUS "Found libSOAPYSDR: ${SOAPYSDR_INCLUDE_DIRS}, ${SOAPYSDR_LIBRARIES}") | ||
else(SOAPYSDR_INCLUDE_DIRS AND SOAPYSDR_LIBRARIES) | ||
set(SOAPYSDR_FOUND FALSE CACHE INTERNAL "libSOAPYSDR found") | ||
message(STATUS "libSOAPYSDR not found.") | ||
endif(SOAPYSDR_INCLUDE_DIRS AND SOAPYSDR_LIBRARIES) | ||
|
||
mark_as_advanced(SOAPYSDR_LIBRARIES SOAPYSDR_INCLUDE_DIRS) | ||
|
||
endif(NOT SOAPYSDR_FOUND) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
/** | ||
* | ||
* \section COPYRIGHT | ||
* | ||
* Copyright 2013-2015 Software Radio Systems Limited | ||
* | ||
* \section LICENSE | ||
* | ||
* This file is part of the srsLTE library. | ||
* | ||
* srsLTE is free software: you can redistribute it and/or modify | ||
* it under the terms of the GNU Affero General Public License as | ||
* published by the Free Software Foundation, either version 3 of | ||
* the License, or (at your option) any later version. | ||
* | ||
* srsLTE is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* GNU Affero General Public License for more details. | ||
* | ||
* A copy of the GNU Affero General Public License can be found in | ||
* the LICENSE file in the top-level directory of this distribution | ||
* and at http://www.gnu.org/licenses/. | ||
* | ||
*/ | ||
|
||
/****************************************************************************** | ||
* File: debug.h | ||
* | ||
* Description: Debug output utilities. | ||
* | ||
* Reference: | ||
*****************************************************************************/ | ||
|
||
#ifndef FILTER_H | ||
#define FILTER_H | ||
#include <stdlib.h> | ||
#include <stdio.h> | ||
#include "srslte/config.h" | ||
#include <stdbool.h> | ||
#include "srslte/utils/vector.h" | ||
typedef struct SRSLTE_API{ | ||
cf_t *filter_input; | ||
cf_t *downsampled_input; | ||
cf_t *filter_output; | ||
bool is_decimator; | ||
int factor; | ||
int num_taps; | ||
float *taps; | ||
|
||
}srslte_filt_cc_t; | ||
|
||
void srslte_filt_decim_cc_init(srslte_filt_cc_t *q, int factor, int order); | ||
|
||
void srslte_filt_decim_cc_free(srslte_filt_cc_t *q); | ||
|
||
void srslte_filt_decim_cc_execute(srslte_filt_cc_t *q, cf_t *input, cf_t *downsampled_input, cf_t *output, int size); | ||
|
||
void srslte_downsample_cc(cf_t *input, cf_t *output, int M, int size) ; | ||
#endif // FILTER_H |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.