diff options
Diffstat (limited to 'mpm/python/pyusrp_periphs.cpp')
-rw-r--r-- | mpm/python/pyusrp_periphs.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/mpm/python/pyusrp_periphs.cpp b/mpm/python/pyusrp_periphs.cpp index 716209205..feb7c2bad 100644 --- a/mpm/python/pyusrp_periphs.cpp +++ b/mpm/python/pyusrp_periphs.cpp @@ -6,6 +6,7 @@ // include hackery to only include boost python and define the macro here #include <boost/python.hpp> +#include <config.h> #define LIBMPM_PYTHON #define LIBMPM_BOOST_PREAMBLE(module) \ /* Register submodule types */ \ @@ -45,8 +46,15 @@ private: #include <mpm/xbar_iface.hpp> #include <mpm/types/types_python.hpp> #include <mpm/spi/spi_python.hpp> + +#ifdef ENABLE_MYKONOS #include <mpm/ad937x/ad937x_ctrl.hpp> +#endif + +#ifdef ENABLE_MAGNESIUM #include <mpm/dboards/magnesium_manager.hpp> +#endif + #include <boost/noncopyable.hpp> namespace bp = boost::python; @@ -58,7 +66,11 @@ BOOST_PYTHON_MODULE(libpyusrp_periphs) export_converter(); export_types(); export_spi(); +#ifdef ENABLE_MYKONOS export_mykonos(); +#endif export_xbar(); +#ifdef ENABLE_MAGNESIUM export_magnesium(); +#endif } |