aboutsummaryrefslogtreecommitdiffstats
path: root/mpm/n310
diff options
context:
space:
mode:
Diffstat (limited to 'mpm/n310')
-rw-r--r--mpm/n310/CMakeLists.txt26
-rw-r--r--mpm/n310/periph_manager.cpp38
-rw-r--r--mpm/n310/periph_manager.hpp82
3 files changed, 0 insertions, 146 deletions
diff --git a/mpm/n310/CMakeLists.txt b/mpm/n310/CMakeLists.txt
deleted file mode 100644
index 3177dd5b5..000000000
--- a/mpm/n310/CMakeLists.txt
+++ /dev/null
@@ -1,26 +0,0 @@
-#
-# Copyright 2017 Ettus Research (National Instruments)
-#
-# This program 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 of the License, or
-# (at your option) any later version.
-#
-# This program 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 this program. If not, see <http://www.gnu.org/licenses/>.
-#
-
-########################################################################
-# This file included, use CMake directory variables
-########################################################################
-
-
-USRP_PERIPHS_ADD_OBJECT(n310
- ${CMAKE_CURRENT_SOURCE_DIR}/periph_manager.cpp)
-
-TARGET_INCLUDE_DIRECTORIES(n310 PUBLIC ${UHD_HOST_ROOT}/lib/usrp/common)
diff --git a/mpm/n310/periph_manager.cpp b/mpm/n310/periph_manager.cpp
deleted file mode 100644
index a7941774e..000000000
--- a/mpm/n310/periph_manager.cpp
+++ /dev/null
@@ -1,38 +0,0 @@
-//
-// Copyright 2017 Ettus Research (National Instruments)
-//
-// This program 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 of the License, or
-// (at your option) any later version.
-//
-// This program 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 this program. If not, see <http://www.gnu.org/licenses/>.
-//
-
-#include "periph_manager.hpp"
-
-using namespace mpm::n3xx;
-
-n3xx_dboard_periph_manager::n3xx_dboard_periph_manager(
- uhd::spi_iface::sptr lmk_spi
- //uhd::spi_iface::sptr myk_spi
- //uhd::spi_iface::sptr cpld_spi
- )
- {
- _clock_spi = std::make_shared<lmk04828_spi_iface>(lmk04828_spi_iface(lmk_spi));
- _clock_gen = lmk04828_iface::make(_clock_spi->get_write_fn(), _clock_spi->get_read_fn());
- };
-
-lmk04828_iface::sptr n3xx_dboard_periph_manager::get_clock_gen() { return _clock_gen; }
-
-n3xx_dboard_periph_manager periph_manager::get_dboard_A(){
- return dboard_A_manager;
-}
-
-lmk04828_iface::sptr periph_manager::get_clock_gen(){ return dboard_A_manager.get_clock_gen(); }
diff --git a/mpm/n310/periph_manager.hpp b/mpm/n310/periph_manager.hpp
deleted file mode 100644
index 3df9aa72b..000000000
--- a/mpm/n310/periph_manager.hpp
+++ /dev/null
@@ -1,82 +0,0 @@
-//
-// Copyright 2017 Ettus Research (National Instruments)
-//
-// This program 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 of the License, or
-// (at your option) any later version.
-//
-// This program 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 this program. If not, see <http://www.gnu.org/licenses/>.
-//
-
-#pragma once
-
-#include "mpm/spi/spidev_iface.hpp"
-#include "lmk/lmk04828_spi_iface.hpp"
-#include <memory>
-
-namespace mpm { namespace n3xx {
- /*
- class dboard_periph_manager
- {
- //....
- };
- */
- /**************************************************************************
- * Daughterboard peripherals
- *************************************************************************/
-
- /*! Encapsulates all peripherals stored on the regular N300/N310
- * daughterboard.
- */
- class n3xx_dboard_periph_manager// : public dboard_periph_manager
- {
- public:
- n3xx_dboard_periph_manager(
- uhd::spi_iface::sptr lmk_spi
- // uhd::spi_iface::sptr myk_spi
- // uhd::spi_iface::sptr cpld_spi
-
- );
-
- /*! Return a reference to the clock chip
- */
- lmk04828_iface::sptr get_clock_gen();
-
- private:
- //ad937x_ctrl::sptr _rfic;
- //cpld control
- lmk04828_iface::sptr _clock_gen;
- std::shared_ptr<lmk04828_spi_iface> _clock_spi;
- };
-
- /**************************************************************************
- * Motherboard peripherals
- *************************************************************************/
- class periph_manager
- {
- public:
-
- periph_manager(std::string spi_path): dboard_A_manager(mpm::spi::spidev_iface::make(spi_path))
- {
-
- };
-
- n3xx_dboard_periph_manager get_dboard_A();
- lmk04828_iface::sptr get_clock_gen();
-
- // virtual void set_clock_source();
-
- private:
- n3xx_dboard_periph_manager dboard_A_manager;
- // n3xx_dboard_periph_manager dboard_B_manager;
- };
-
-}}; /* namespace mpm::n310 */
-