diff options
Diffstat (limited to 'host/lib/usrp/e300/e300_impl.cpp')
-rw-r--r-- | host/lib/usrp/e300/e300_impl.cpp | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/host/lib/usrp/e300/e300_impl.cpp b/host/lib/usrp/e300/e300_impl.cpp index 24e9c6f82..b4011eda0 100644 --- a/host/lib/usrp/e300/e300_impl.cpp +++ b/host/lib/usrp/e300/e300_impl.cpp @@ -542,6 +542,12 @@ e300_impl::e300_impl(const uhd::device_addr_t &device_addr) fp_gpio->set_gpio_attr(attr.first, val); }); break; + case usrp::gpio_atr::GPIO_READBACK: + _tree->create<uint8_t>(mb_path / "gpio" / "INT0" / "READBACK") + .set_publisher([this, fp_gpio](){ + return fp_gpio->read_gpio(); + }); + break; default: _tree->create<uint32_t>(mb_path / "gpio" / "INT0" / attr.second) .set(0) @@ -550,10 +556,6 @@ e300_impl::e300_impl(const uhd::device_addr_t &device_addr) }); } } - _tree->create<uint8_t>(mb_path / "gpio" / "INT0" / "READBACK") - .set_publisher([this, fp_gpio](){ - return fp_gpio->read_gpio(); - }); //////////////////////////////////////////////////////////////////// |