aboutsummaryrefslogtreecommitdiffstats
path: root/lib/source_impl.cc
diff options
context:
space:
mode:
Diffstat (limited to 'lib/source_impl.cc')
-rw-r--r--lib/source_impl.cc19
1 files changed, 19 insertions, 0 deletions
diff --git a/lib/source_impl.cc b/lib/source_impl.cc
index 3aa17f9..a28f314 100644
--- a/lib/source_impl.cc
+++ b/lib/source_impl.cc
@@ -88,6 +88,11 @@
#include <redpitaya_source_c.h>
#endif
+#ifdef ENABLE_FREESRP
+#include <freesrp_source_c.h>
+#endif
+
+
#include "arg_helpers.h"
#include "source_impl.h"
@@ -163,6 +168,9 @@ source_impl::source_impl( const std::string &args )
#ifdef ENABLE_REDPITAYA
dev_types.push_back("redpitaya");
#endif
+#ifdef ENABLE_FREESRP
+ dev_types.push_back("freesrp");
+#endif
std::cerr << "gr-osmosdr "
<< GR_OSMOSDR_VERSION << " (" << GR_OSMOSDR_LIBVER << ") "
<< "gnuradio " << gr::version() << std::endl;
@@ -240,6 +248,10 @@ source_impl::source_impl( const std::string &args )
BOOST_FOREACH( std::string dev, redpitaya_source_c::get_devices() )
dev_list.push_back( dev );
#endif
+#ifdef ENABLE_FREESRP
+ BOOST_FOREACH( std::string dev, freesrp_source_c::get_devices() )
+ dev_list.push_back( dev );
+#endif
// std::cerr << std::endl;
// BOOST_FOREACH( std::string dev, dev_list )
@@ -364,6 +376,13 @@ source_impl::source_impl( const std::string &args )
}
#endif
+#ifdef ENABLE_FREESRP
+ if ( dict.count("freesrp") ) {
+ freesrp_source_c_sptr src = make_freesrp_source_c( arg );
+ block = src; iface = src.get();
+ }
+#endif
+
if ( iface != NULL && long(block.get()) != 0 ) {
_devs.push_back( iface );