summaryrefslogtreecommitdiffstats
path: root/lib/usrp/mboard
diff options
context:
space:
mode:
authorJosh Blum <josh@joshknows.com>2010-01-21 15:30:34 -0800
committerJosh Blum <josh@joshknows.com>2010-01-21 15:30:34 -0800
commite3483c7451d20b7ed1d8d4865e15751f18cdef78 (patch)
treef309a95a1b0ecd3dc3295ebc71ee5ad697c9f7a8 /lib/usrp/mboard
parent5b42b774d9ac1e74fb2916bf58085fe19ecb6720 (diff)
downloaduhd-e3483c7451d20b7ed1d8d4865e15751f18cdef78.tar.gz
uhd-e3483c7451d20b7ed1d8d4865e15751f18cdef78.tar.bz2
uhd-e3483c7451d20b7ed1d8d4865e15751f18cdef78.zip
Added a usrp device abstration that creates usrp mboards.
Added a usrp mboard named test, its empty for now.
Diffstat (limited to 'lib/usrp/mboard')
-rw-r--r--lib/usrp/mboard/Makefile.am10
-rw-r--r--lib/usrp/mboard/base.cpp16
-rw-r--r--lib/usrp/mboard/test.cpp24
3 files changed, 50 insertions, 0 deletions
diff --git a/lib/usrp/mboard/Makefile.am b/lib/usrp/mboard/Makefile.am
index 66fc4dd71..0296163b5 100644
--- a/lib/usrp/mboard/Makefile.am
+++ b/lib/usrp/mboard/Makefile.am
@@ -5,3 +5,13 @@
include $(top_srcdir)/Makefile.common
SUBDIRS =
+
+AM_CPPFLAGS = $(GENERAL_CPPFLAGS)
+
+noinst_LTLIBRARIES = lib.la
+
+lib_la_SOURCES = \
+ base.cpp \
+ test.cpp
+
+lib_la_LIBADD = $(GENERAL_LDDFLAGS)
diff --git a/lib/usrp/mboard/base.cpp b/lib/usrp/mboard/base.cpp
new file mode 100644
index 000000000..4036b74b2
--- /dev/null
+++ b/lib/usrp/mboard/base.cpp
@@ -0,0 +1,16 @@
+//
+// Copyright 2010 Ettus Research LLC
+//
+
+#include <usrp_uhd/usrp/mboard/base.hpp>
+#include <stdexcept>
+
+using namespace usrp_uhd::usrp::mboard;
+
+base::base(void){
+ /* NOP */
+}
+
+base::~base(void){
+ /* NOP */
+}
diff --git a/lib/usrp/mboard/test.cpp b/lib/usrp/mboard/test.cpp
new file mode 100644
index 000000000..564f19efc
--- /dev/null
+++ b/lib/usrp/mboard/test.cpp
@@ -0,0 +1,24 @@
+//
+// Copyright 2010 Ettus Research LLC
+//
+
+#include <usrp_uhd/usrp/mboard/test.hpp>
+#include <stdexcept>
+
+using namespace usrp_uhd::usrp::mboard;
+
+test::test(const device_addr_t &){
+ //
+}
+
+test::~test(void){
+ //
+}
+
+void test::get(const wax::type &, wax::type &){
+ //
+}
+
+void test::set(const wax::type &, const wax::type &){
+ //
+}