diff options
author | Lane Kolbly <lane.kolbly@ni.com> | 2022-03-18 15:42:03 -0500 |
---|---|---|
committer | Aaron Rossetto <aaron.rossetto@ni.com> | 2022-03-23 16:14:07 -0500 |
commit | 48b76f49bc7e5498df4fba9274063913d7f31cfb (patch) | |
tree | d17d2ea71a3f302ccf9016b961f9eca1909cd763 /host/lib/usrp/x400/x400_radio_control.cpp | |
parent | 1ba8c2517d7162e0a5df1006abffcfc0ca910394 (diff) | |
download | uhd-48b76f49bc7e5498df4fba9274063913d7f31cfb.tar.gz uhd-48b76f49bc7e5498df4fba9274063913d7f31cfb.tar.bz2 uhd-48b76f49bc7e5498df4fba9274063913d7f31cfb.zip |
host: x410: Emulate GPIO classic ATR mode using new mode
This fixes an issue with setting the active channel source in MPM, and
additionally allows opening up the more flexible API in the future without
requiring a filesystem update.
Diffstat (limited to 'host/lib/usrp/x400/x400_radio_control.cpp')
-rw-r--r-- | host/lib/usrp/x400/x400_radio_control.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/host/lib/usrp/x400/x400_radio_control.cpp b/host/lib/usrp/x400/x400_radio_control.cpp index 528330101..ef2d6bd21 100644 --- a/host/lib/usrp/x400/x400_radio_control.cpp +++ b/host/lib/usrp/x400/x400_radio_control.cpp @@ -187,7 +187,7 @@ x400_radio_control_impl::x400_radio_control_impl(make_args_ptr make_args) auto mpm_rpc = _mb_control->dynamic_cast_rpc_as<uhd::usrp::mpmd_rpc_iface>(); if (mpm_rpc->get_gpio_banks().size() > 0) { _gpios = std::make_shared<x400::gpio_control>( - _rpcc, RFNOC_MAKE_WB_IFACE(regmap::PERIPH_BASE + 0xC000, 0)); + _rpcc, _mb_control, RFNOC_MAKE_WB_IFACE(regmap::PERIPH_BASE + 0xC000, 0)); auto gpio_port_mapper = std::shared_ptr<uhd::mapper::gpio_port_mapper>( new uhd::rfnoc::x400::x400_gpio_port_mapping); |