From e3483c7451d20b7ed1d8d4865e15751f18cdef78 Mon Sep 17 00:00:00 2001 From: Josh Blum Date: Thu, 21 Jan 2010 15:30:34 -0800 Subject: Added a usrp device abstration that creates usrp mboards. Added a usrp mboard named test, its empty for now. --- lib/usrp/mboard/Makefile.am | 10 ++++++++++ lib/usrp/mboard/base.cpp | 16 ++++++++++++++++ lib/usrp/mboard/test.cpp | 24 ++++++++++++++++++++++++ 3 files changed, 50 insertions(+) create mode 100644 lib/usrp/mboard/base.cpp create mode 100644 lib/usrp/mboard/test.cpp (limited to 'lib/usrp/mboard') 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 +#include + +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 +#include + +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 &){ + // +} -- cgit v1.2.3