From 1e5388e70de57aaaccd406a20a645f9b641fbeb4 Mon Sep 17 00:00:00 2001 From: Trung N Tran Date: Thu, 22 Feb 2018 10:57:33 -0800 Subject: fixup! x300,n230,e300,b200: changes to adapt to new usrp API --- host/lib/usrp/n230/n230_impl.cpp | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'host/lib/usrp/n230') diff --git a/host/lib/usrp/n230/n230_impl.cpp b/host/lib/usrp/n230/n230_impl.cpp index 1b59793b8..04d404311 100644 --- a/host/lib/usrp/n230/n230_impl.cpp +++ b/host/lib/usrp/n230/n230_impl.cpp @@ -440,6 +440,12 @@ void n230_impl::_initialize_property_tree(const fs_path& mb_path) _resource_mgr->get_minisas_gpio_ctrl_sptr(1)->set_gpio_attr(attr.first, val); }); break; + case usrp::gpio_atr::GPIO_READBACK: + _tree->create(mb_path / "gpio" / "FP0" / "READBACK") + .set_publisher(boost::bind(&gpio_atr::gpio_atr_3000::read_gpio, _resource_mgr->get_minisas_gpio_ctrl_sptr(0))); + _tree->create(mb_path / "gpio" / "FP1" / "READBACK") + .set_publisher(boost::bind(&gpio_atr::gpio_atr_3000::read_gpio, _resource_mgr->get_minisas_gpio_ctrl_sptr(1))); + break; default: _tree->create(mb_path / "gpio" / "FP0" / attr.second) .set(0); @@ -448,11 +454,6 @@ void n230_impl::_initialize_property_tree(const fs_path& mb_path) break; } } - _tree->create(mb_path / "gpio" / "FP0" / "READBACK") - .set_publisher(boost::bind(&gpio_atr::gpio_atr_3000::read_gpio, _resource_mgr->get_minisas_gpio_ctrl_sptr(0))); - _tree->create(mb_path / "gpio" / "FP1" / "READBACK") - .set_publisher(boost::bind(&gpio_atr::gpio_atr_3000::read_gpio, _resource_mgr->get_minisas_gpio_ctrl_sptr(1))); - //------------------------------------------------------------------ // GPSDO sensors //------------------------------------------------------------------ -- cgit v1.2.3