aboutsummaryrefslogtreecommitdiffstats
path: root/host/examples
diff options
context:
space:
mode:
authorMartin Braun <martin.braun@ettus.com>2021-11-01 15:08:17 +0100
committerAaron Rossetto <aaron.rossetto@ni.com>2021-11-02 07:57:39 -0700
commit78336d4f6f08c3272a3d5dd5b478b5dfbc1345f2 (patch)
tree9f1af6e2016163d068fd1469b5e6624551d0f0c2 /host/examples
parentc4d433c5be6dadc45571e1ffc1e1f1d39907c38c (diff)
downloaduhd-78336d4f6f08c3272a3d5dd5b478b5dfbc1345f2.tar.gz
uhd-78336d4f6f08c3272a3d5dd5b478b5dfbc1345f2.tar.bz2
uhd-78336d4f6f08c3272a3d5dd5b478b5dfbc1345f2.zip
rfnoc: Remove cruft from UHD 3 (constants)
This removes some constants from UHD that were left over from RFNoC/UHD 3.x. They are unused. rfnoc_rx_to_file had a commented-out section that was also UHD-3 only. Note that rfnoc/constants.hpp is pretty bare now, and could be removed. However, it is in the public header section, so we shall leave the used constants where they are. This requires fixing includes in mgmt_portal.cpp.
Diffstat (limited to 'host/examples')
-rw-r--r--host/examples/rfnoc_rx_to_file.cpp31
1 files changed, 0 insertions, 31 deletions
diff --git a/host/examples/rfnoc_rx_to_file.cpp b/host/examples/rfnoc_rx_to_file.cpp
index 2d648c10d..503582370 100644
--- a/host/examples/rfnoc_rx_to_file.cpp
+++ b/host/examples/rfnoc_rx_to_file.cpp
@@ -447,37 +447,6 @@ int UHD_SAFE_MAIN(int argc, char* argv[])
std::cout << "Using streamer args: " << stream_args.args.to_string() << std::endl;
uhd::rx_streamer::sptr rx_stream = graph->create_rx_streamer(1, stream_args);
- // Set the stream args on the radio:
- // if (block_id.empty()) {
- // // If no extra block is required, connect to the radio:
- // streamer_args["block_id"] = radio_ctrl_id.to_string();
- // streamer_args["block_port"] = str(boost::format("%d") % radio_chan);
- //} else {
- // // Otherwise, see if the requested block exists and connect it to the radio:
- // if (not usrp->has_block(block_id)) {
- // std::cout << "Block does not exist on current device: " << block_id
- // << std::endl;
- // return EXIT_FAILURE;
- // }
-
- // uhd::rfnoc::source_block_ctrl_base::sptr blk_ctrl =
- // usrp->get_block_ctrl<uhd::rfnoc::source_block_ctrl_base>(block_id);
-
- // if (not block_args.empty()) {
- // // Set the block args on the other block:
- // blk_ctrl->set_args(uhd::device_addr_t(block_args));
- // }
- // // Connect:
- // std::cout << "Connecting " << radio_ctrl_id << " ==> " <<
- // blk_ctrl->get_block_id()
- // << std::endl;
- // rx_graph->connect(
- // radio_ctrl_id, radio_chan, blk_ctrl->get_block_id(), uhd::rfnoc::ANY_PORT);
- // streamer_args["block_id"] = blk_ctrl->get_block_id().to_string();
-
- // spp = blk_ctrl->get_args().cast<size_t>("spp", spp);
- //}
-
// Connect blocks and commit the graph
for (auto& edge : chain) {
if (uhd::rfnoc::block_id_t(edge.dst_blockid).match(uhd::rfnoc::NODE_ID_SEP)) {