diff options
author | Brent Stapleton <brent.stapleton@ettus.com> | 2017-10-31 16:02:44 -0700 |
---|---|---|
committer | Martin Braun <martin.braun@ettus.com> | 2017-12-22 15:05:05 -0800 |
commit | d884d7af8e5e62a1650884a6ef5d255ff04708b8 (patch) | |
tree | f8b886524a9d31c557c3e4acf159bd15d10d6059 /host/lib/usrp/mpmd/mpmd_mboard_impl.cpp | |
parent | b4ba46cbf2eddc3c79bd10ea2e4cf9ebc8c6914b (diff) | |
download | uhd-d884d7af8e5e62a1650884a6ef5d255ff04708b8.tar.gz uhd-d884d7af8e5e62a1650884a6ef5d255ff04708b8.tar.bz2 uhd-d884d7af8e5e62a1650884a6ef5d255ff04708b8.zip |
mpmd: added support for the skip_init key in the device args
Adding skip_init to the device args makes it so rfnoc blocks, etc. are not initialized.
Diffstat (limited to 'host/lib/usrp/mpmd/mpmd_mboard_impl.cpp')
-rw-r--r-- | host/lib/usrp/mpmd/mpmd_mboard_impl.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/host/lib/usrp/mpmd/mpmd_mboard_impl.cpp b/host/lib/usrp/mpmd/mpmd_mboard_impl.cpp index 0c8e5911a..d06f25939 100644 --- a/host/lib/usrp/mpmd/mpmd_mboard_impl.cpp +++ b/host/lib/usrp/mpmd/mpmd_mboard_impl.cpp @@ -85,6 +85,11 @@ mpmd_mboard_impl::mpmd_mboard_impl( _claimer_task = claim_device_and_make_task(rpc, mb_args); // No one else can now claim the device. + if (mb_args_.has_key("skip_init")) { + UHD_LOG_DEBUG("MPMD", "Claimed device, but skipped init."); + return; + } + init_device(rpc, mb_args); // RFNoC block clocks are now on. Noc-IDs can be read back. |