diff options
author | Martin Braun <martin.braun@ettus.com> | 2017-04-25 17:00:34 -0700 |
---|---|---|
committer | Martin Braun <martin.braun@ettus.com> | 2017-12-22 15:03:52 -0800 |
commit | 151ba5fb06dfdb6fcc46ccfdabf5f1e064236981 (patch) | |
tree | fa941b0589b09a22957e8b7e3966679748a9b202 /mpm/python/pyusrp_periphs.cpp | |
parent | 1262dfb3ccf5a9916685b3399587593174c6583e (diff) | |
download | uhd-151ba5fb06dfdb6fcc46ccfdabf5f1e064236981.tar.gz uhd-151ba5fb06dfdb6fcc46ccfdabf5f1e064236981.tar.bz2 uhd-151ba5fb06dfdb6fcc46ccfdabf5f1e064236981.zip |
mpm: Major refactoring
- Created clean interfaces for SPI and registers
- Severed most links to UHD
- Added a lockable class which allows exposing mutexes into Python
Diffstat (limited to 'mpm/python/pyusrp_periphs.cpp')
-rw-r--r-- | mpm/python/pyusrp_periphs.cpp | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/mpm/python/pyusrp_periphs.cpp b/mpm/python/pyusrp_periphs.cpp index cb370d874..2c6ea869b 100644 --- a/mpm/python/pyusrp_periphs.cpp +++ b/mpm/python/pyusrp_periphs.cpp @@ -27,12 +27,11 @@ //#include "types.hpp" #include "converters.hpp" -#include "mpm/xbar_iface.hpp" +#include <mpm/xbar_iface.hpp> +#include <mpm/types/types_python.hpp> #include <mpm/ad937x/ad937x_ctrl.hpp> -#include <mpm/lmk04828//lmk04828_spi_iface.hpp> -#include "mpm/dboards/magnesium_manager.hpp" -//#include "lib_periphs.hpp" -//#include "dboards.hpp" +#include <mpm/chips/lmk04828_spi_iface.hpp> +#include <mpm/dboards/magnesium_manager.hpp> #include <boost/noncopyable.hpp> namespace bp = boost::python; @@ -42,10 +41,9 @@ BOOST_PYTHON_MODULE(libpyusrp_periphs) bp::object package = bp::scope(); package.attr("__path__") = "libpyusrp_periphs"; export_converter(); - //export_types(); + export_types(); //export_spi(); - export_lmk(); export_mykonos(); export_xbar(); - export_dboards(); + export_magnesium(); } |