aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib/rfnoc/radio_ctrl_impl.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'host/lib/rfnoc/radio_ctrl_impl.cpp')
-rw-r--r--host/lib/rfnoc/radio_ctrl_impl.cpp24
1 files changed, 1 insertions, 23 deletions
diff --git a/host/lib/rfnoc/radio_ctrl_impl.cpp b/host/lib/rfnoc/radio_ctrl_impl.cpp
index fe8d51468..a151b2690 100644
--- a/host/lib/rfnoc/radio_ctrl_impl.cpp
+++ b/host/lib/rfnoc/radio_ctrl_impl.cpp
@@ -45,29 +45,7 @@ radio_ctrl_impl::radio_ctrl_impl() :
/////////////////////////////////////////////////////////////////////////
for (size_t i = 0; i < _get_num_radios(); i++) {
_register_loopback_self_test(i);
- _perifs[i].ctrl = boost::make_shared<wb_iface_adapter>(
- // poke32 functor
- [this, i](const uint32_t addr, const uint32_t data){
- this->sr_write(addr, data, i);
- },
- // peek32 functor
- [this, i](const uint32_t addr){
- return this->user_reg_read32(addr, i);
- },
- // peek64 functor
- [this, i](const uint32_t addr){
- return this->user_reg_read64(addr, i);
- },
- // get_time functor
- [this, i](){
- return this->get_command_time(i);
- },
- // set_time functor
- [this, i](const time_spec_t& time_spec){
- this->set_command_time(time_spec, i);
- }
- );
-
+ _perifs[i].ctrl = this->get_ctrl_iface(i);
// FIXME there's currently no way to set the underflow policy
if (i == 0) {