diff options
author | Trung N Tran <trung.tran@ettus.com> | 2018-02-22 10:57:33 -0800 |
---|---|---|
committer | Martin Braun <martin.braun@ettus.com> | 2018-02-22 14:11:20 -0800 |
commit | 1e5388e70de57aaaccd406a20a645f9b641fbeb4 (patch) | |
tree | 4dbfb733b1983a424b1e8f701292a527aa5a64fa /host/lib/usrp/n230 | |
parent | c208452c81685d8bb865202f3ab4f5461023a22e (diff) | |
download | uhd-1e5388e70de57aaaccd406a20a645f9b641fbeb4.tar.gz uhd-1e5388e70de57aaaccd406a20a645f9b641fbeb4.tar.bz2 uhd-1e5388e70de57aaaccd406a20a645f9b641fbeb4.zip |
fixup! x300,n230,e300,b200: changes to adapt to new usrp API
Diffstat (limited to 'host/lib/usrp/n230')
-rw-r--r-- | host/lib/usrp/n230/n230_impl.cpp | 11 |
1 files changed, 6 insertions, 5 deletions
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<uint32_t>(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<uint32_t>(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<uint32_t>(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<uint32_t>(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<uint32_t>(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 //------------------------------------------------------------------ |