From 178b35569b1a25180a80a23b945b10b04c9f10f5 Mon Sep 17 00:00:00 2001 From: Sugandha Gupta Date: Fri, 25 Jan 2019 11:34:47 -0800 Subject: e310/e320: Move E310 to MPM architecture and refactor - Turns the E310 into an MPM device (like N3xx, E320) - Factor out common code between E320 and E310, maximize sharing between the two devices - Remove all pre-MPM E310 code that is no longer needed - Modify MPM to remove all existing overlays before applying new ones (this is necessary to enable idle image mode for E310) Co-authored-by: Virendra Kakade Signed-off-by: Virendra Kakade --- mpm/python/pyusrp_periphs/e31x/pyusrp_periphs.cpp | 30 +++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 mpm/python/pyusrp_periphs/e31x/pyusrp_periphs.cpp (limited to 'mpm/python/pyusrp_periphs') diff --git a/mpm/python/pyusrp_periphs/e31x/pyusrp_periphs.cpp b/mpm/python/pyusrp_periphs/e31x/pyusrp_periphs.cpp new file mode 100644 index 000000000..b7971407c --- /dev/null +++ b/mpm/python/pyusrp_periphs/e31x/pyusrp_periphs.cpp @@ -0,0 +1,30 @@ +// +// Copyright 2018 Ettus Research, a National Instruments Company +// Copyright 2019 Ettus Research, a National Instruments Brand +// +// SPDX-License-Identifier: GPL-3.0-or-later +// + +#include +namespace py = pybind11; +#define LIBMPM_PYTHON + +// Allow boost::shared_ptr to be a holder class of an object (PyBind11 +// supports std::shared_ptr and std::unique_ptr out of the box) +#include +PYBIND11_DECLARE_HOLDER_TYPE(T, boost::shared_ptr); + +#include +#include +#include +#include +#include + +PYBIND11_MODULE(libpyusrp_periphs, m) +{ + export_types(m); + export_spi(m); + export_xbar(m); + export_catalina(m); + export_e31x_db(m); +} -- cgit v1.2.3