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/pyusrp_periphs.cpp | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 mpm/python/pyusrp_periphs.cpp (limited to 'mpm/python/pyusrp_periphs.cpp') diff --git a/mpm/python/pyusrp_periphs.cpp b/mpm/python/pyusrp_periphs.cpp new file mode 100644 index 000000000..5a49398c4 --- /dev/null +++ b/mpm/python/pyusrp_periphs.cpp @@ -0,0 +1,19 @@ +#include "n310_periphs.hpp" +// #include "tests_periphs.hpp" +#include "lib_periphs.hpp" +#include +#include +#include + +namespace bp = boost::python; + +BOOST_PYTHON_MODULE(libpyusrp_periphs) +{ + bp::object package = bp::scope(); + package.attr("__path__") = "libpyusrp_periphs"; + bp::def("print_foo", &mpm::print_foo); + export_spi(); + // export_tests(); + export_lmk(); + export_n3xx(); +} -- cgit v1.2.3