aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib/usrp/e300
diff options
context:
space:
mode:
authorTrung N Tran <trung.tran@ettus.com>2018-02-22 10:57:33 -0800
committerMartin Braun <martin.braun@ettus.com>2018-02-22 14:11:20 -0800
commit1e5388e70de57aaaccd406a20a645f9b641fbeb4 (patch)
tree4dbfb733b1983a424b1e8f701292a527aa5a64fa /host/lib/usrp/e300
parentc208452c81685d8bb865202f3ab4f5461023a22e (diff)
downloaduhd-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/e300')
-rw-r--r--host/lib/usrp/e300/e300_impl.cpp10
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();
- });
////////////////////////////////////////////////////////////////////