From ef6326a174e6880be5e2eaeac26a2c5de0768807 Mon Sep 17 00:00:00 2001 From: Andrej Rode Date: Tue, 21 Mar 2017 19:46:50 -0700 Subject: mpm: python refactoring --- mpm/dboards/magnesium_manager.hpp | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'mpm/dboards') diff --git a/mpm/dboards/magnesium_manager.hpp b/mpm/dboards/magnesium_manager.hpp index ca8a7e123..3c8f038ed 100644 --- a/mpm/dboards/magnesium_manager.hpp +++ b/mpm/dboards/magnesium_manager.hpp @@ -48,3 +48,13 @@ namespace mpm { namespace dboards { }}; + +#ifdef LIBMPM_PYTHON +void export_dboards(){ + LIBMPM_BOOST_PREAMBLE("dboards") + bp::class_("magnesium_periph_manager", bp::init()) + .def("get_clock_ctrl", &mpm::dboards::magnesium_periph_manager::get_clock_ctrl) + .def("get_radio_ctrl", &mpm::dboards::magnesium_periph_manager::get_radio_ctrl) + ; +} +#endif -- cgit v1.2.3