From 1a4348038d0eb57d53475074dca49e8192aeb2d7 Mon Sep 17 00:00:00 2001 From: Martin Braun Date: Wed, 8 Mar 2017 09:28:55 -0800 Subject: Initial commit for N3xx development. - Creates mpm/ subdirectory - First pass at hardware daemon/MPM - New code for LMK04828, AD9371 - spidev integration Contributions by: Martin Braun Derek Kozel Mark Meserve Andrej Rode --- mpm/python/tests_periphs.cpp | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 mpm/python/tests_periphs.cpp (limited to 'mpm/python/tests_periphs.cpp') diff --git a/mpm/python/tests_periphs.cpp b/mpm/python/tests_periphs.cpp new file mode 100644 index 000000000..15c1b08b6 --- /dev/null +++ b/mpm/python/tests_periphs.cpp @@ -0,0 +1,18 @@ +#include "tests_periphs.hpp" +#include +#include +#include + +namespace bp = boost::python; + +void export_tests(){ + //Register submodule types + bp::object tests_module(bp::handle<>(bp::borrowed(PyImport_AddModule("libpyusrp_periphs.tests")))); + bp::scope().attr("tests") = tests_module; + bp::scope io_scope = tests_module; + + bp::class_, std::shared_ptr >("test_spi_iface", bp::init<>()) + .def("make", &mpm::tests_spi_iface::make) + .staticmethod("make") + ; +} -- cgit v1.2.3