summaryrefslogtreecommitdiff
path: root/gr-gpio/src/lib
diff options
context:
space:
mode:
Diffstat (limited to 'gr-gpio/src/lib')
-rw-r--r--gr-gpio/src/lib/Makefile.am85
-rw-r--r--gr-gpio/src/lib/gpio.i43
-rw-r--r--gr-gpio/src/lib/gpio_and_const_ss.cc71
-rw-r--r--gr-gpio/src/lib/gpio_and_const_ss.h54
4 files changed, 0 insertions, 253 deletions
diff --git a/gr-gpio/src/lib/Makefile.am b/gr-gpio/src/lib/Makefile.am
deleted file mode 100644
index 1d2451f1cd..0000000000
--- a/gr-gpio/src/lib/Makefile.am
+++ /dev/null
@@ -1,85 +0,0 @@
-#
-# Copyright 2004,2005,2006,2007,2008,2009 Free Software Foundation, Inc.
-#
-# This file is part of GNU Radio
-#
-# GNU Radio is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 3, or (at your option)
-# any later version.
-#
-# GNU Radio 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 General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with GNU Radio; see the file COPYING. If not, write to
-# the Free Software Foundation, Inc., 51 Franklin Street,
-# Boston, MA 02110-1301, USA.
-#
-
-include $(top_srcdir)/Makefile.common
-
-ourpythondir = $(grpythondir)/gpio
-ourlibdir = $(grpyexecdir)/gpio
-
-AM_CPPFLAGS = $(STD_DEFINES_AND_INCLUDES) $(PYTHON_CPPFLAGS) $(WITH_INCLUDES)
-
-ALL_IFILES = \
- $(LOCAL_IFILES) \
- $(NON_LOCAL_IFILES)
-
-NON_LOCAL_IFILES = $(GNURADIO_I)
-
-LOCAL_IFILES = \
- $(srcdir)/gpio.i
-
-# These files are built by SWIG. The first is the C++ glue.
-# The second is the python wrapper that loads the _gpio shared library
-# and knows how to call our extensions.
-
-BUILT_SOURCES = \
- gpio_swig.cc \
- gpio_swig.py
-
-# This gets gpio.py installed in the right place
-ourpython_PYTHON = \
- gpio_swig.py
-
-ourlib_LTLIBRARIES = _gpio_swig.la
-
-# These are the source files that go into the shared library
-_gpio_swig_la_SOURCES = \
- gpio_swig.cc \
- gpio_and_const_ss.cc
-
-# magic flags
-_gpio_swig_la_LDFLAGS = $(NO_UNDEFINED) -module -avoid-version
-
-# link the library against some comon swig runtime code and the
-# c++ standard library
-_gpio_swig_la_LIBADD = \
- $(PYTHON_LDFLAGS) \
- $(GNURADIO_CORE_LA) \
- -lstdc++
-
-gpio_swig.cc gpio_swig.py: $(ALL_IFILES)
- $(SWIG) $(STD_SWIG_PYTHON_ARGS) -module gpio_swig \
- -o gpio_swig.cc $(LOCAL_IFILES)
-
-# These headers get installed in ${prefix}/include/gnuradio
-grinclude_HEADERS = \
- gpio_and_const_ss.h
-
-# These swig headers get installed in ${prefix}/include/gnuradio/swig
-swiginclude_HEADERS = \
- $(LOCAL_IFILES)
-
-
-# Don't distribute output of swig
-dist-hook:
- @for file in $(BUILT_SOURCES); do echo $(RM) $(distdir)/$$file; done
- @for file in $(BUILT_SOURCES); do $(RM) $(distdir)/$$file; done
-
-MOSTLYCLEANFILES = $(BUILT_SOURCES) *.pyc *~
diff --git a/gr-gpio/src/lib/gpio.i b/gr-gpio/src/lib/gpio.i
deleted file mode 100644
index b65777d3c8..0000000000
--- a/gr-gpio/src/lib/gpio.i
+++ /dev/null
@@ -1,43 +0,0 @@
-/* -*- c++ -*- */
-/*
- * Copyright 2009 Free Software Foundation, Inc.
- *
- * This file is part of GNU Radio
- *
- * GNU Radio is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 3, or (at your option)
- * any later version.
- *
- * GNU Radio 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 General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with GNU Radio; see the file COPYING. If not, write to
- * the Free Software Foundation, Inc., 51 Franklin Street,
- * Boston, MA 02110-1301, USA.
- */
-
-%include "gnuradio.i" // the common stuff
-
-%{
-#include "gpio_and_const_ss.h"
-%}
-
-// ----------------------------------------------------------------
-
-GR_SWIG_BLOCK_MAGIC(gpio,and_const_ss)
-
-gpio_and_const_ss_sptr gpio_make_and_const_ss (unsigned short k);
-
-class gpio_and_const_ss : public gr_sync_block
-{
- private:
- gpio_and_const_ss (unsigned short k);
-
- public:
- unsigned short k () const { return d_k; }
- void set_k (unsigned short k) { d_k = k; }
-};
diff --git a/gr-gpio/src/lib/gpio_and_const_ss.cc b/gr-gpio/src/lib/gpio_and_const_ss.cc
deleted file mode 100644
index e93046199f..0000000000
--- a/gr-gpio/src/lib/gpio_and_const_ss.cc
+++ /dev/null
@@ -1,71 +0,0 @@
-/* -*- c++ -*- */
-/*
- * Copyright 2008 Free Software Foundation, Inc.
- *
- * This file is part of GNU Radio
- *
- * GNU Radio is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 3, or (at your option)
- * any later version.
- *
- * GNU Radio 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 General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with GNU Radio; see the file COPYING. If not, write to
- * the Free Software Foundation, Inc., 51 Franklin Street,
- * Boston, MA 02110-1301, USA.
- */
-
-
-#ifdef HAVE_CONFIG_H
-#include "config.h"
-#endif
-
-#include <gpio_and_const_ss.h>
-#include <gr_io_signature.h>
-
-gpio_and_const_ss_sptr
-gpio_make_and_const_ss (unsigned short k)
-{
- return gpio_and_const_ss_sptr (new gpio_and_const_ss (k));
-}
-
-gpio_and_const_ss::gpio_and_const_ss (unsigned short k)
- : gr_sync_block ("and_const_ss",
- gr_make_io_signature (1, 1, sizeof (short)),
- gr_make_io_signature (1, 1, sizeof (short))),
- d_k (k)
-{
-}
-
-int
-gpio_and_const_ss::work (int noutput_items,
- gr_vector_const_void_star &input_items,
- gr_vector_void_star &output_items)
-{
- short *iptr = (short *) input_items[0];
- short *optr = (short *) output_items[0];
-
- int size = noutput_items;
-
- while (size >= 8){
- *optr++ = *iptr++ & d_k;
- *optr++ = *iptr++ & d_k;
- *optr++ = *iptr++ & d_k;
- *optr++ = *iptr++ & d_k;
- *optr++ = *iptr++ & d_k;
- *optr++ = *iptr++ & d_k;
- *optr++ = *iptr++ & d_k;
- *optr++ = *iptr++ & d_k;
- size -= 8;
- }
-
- while (size-- > 0)
- *optr++ = *iptr++ & d_k;
-
- return noutput_items;
-}
diff --git a/gr-gpio/src/lib/gpio_and_const_ss.h b/gr-gpio/src/lib/gpio_and_const_ss.h
deleted file mode 100644
index e27134d63f..0000000000
--- a/gr-gpio/src/lib/gpio_and_const_ss.h
+++ /dev/null
@@ -1,54 +0,0 @@
-/* -*- c++ -*- */
-/*
- * Copyright 2008 Free Software Foundation, Inc.
- *
- * This file is part of GNU Radio
- *
- * GNU Radio is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 3, or (at your option)
- * any later version.
- *
- * GNU Radio 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 General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with GNU Radio; see the file COPYING. If not, write to
- * the Free Software Foundation, Inc., 51 Franklin Street,
- * Boston, MA 02110-1301, USA.
- */
-
-
-#ifndef INCLUDED_GPIO_AND_CONST_SS_H
-#define INCLUDED_GPIO_AND_CONST_SS_H
-
-#include <gr_sync_block.h>
-
-class gpio_and_const_ss;
-typedef boost::shared_ptr<gpio_and_const_ss> gpio_and_const_ss_sptr;
-
-gpio_and_const_ss_sptr gpio_make_and_const_ss (unsigned short k);
-
-/*!
- * \brief output = input & constant
- * \ingroup block
- */
-class gpio_and_const_ss : public gr_sync_block
-{
- friend gpio_and_const_ss_sptr gpio_make_and_const_ss (unsigned short k);
-
- unsigned short d_k; // the constant
- gpio_and_const_ss (unsigned short k);
-
- public:
- unsigned short k () const { return d_k; }
- void set_k (unsigned short k) { d_k = k; }
-
- int work (int noutput_items,
- gr_vector_const_void_star &input_items,
- gr_vector_void_star &output_items);
-};
-
-#endif