From 22b9593dce1ad034ef84ee3609d2ccbceeb33098 Mon Sep 17 00:00:00 2001 From: Martin Braun Date: Thu, 19 Sep 2019 16:37:58 -0500 Subject: examples: Add replay example to CMake --- host/examples/CMakeLists.txt | 1 + host/examples/replay_samples_from_file.cpp | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) (limited to 'host/examples') diff --git a/host/examples/CMakeLists.txt b/host/examples/CMakeLists.txt index 5894bb0a2..735795d55 100644 --- a/host/examples/CMakeLists.txt +++ b/host/examples/CMakeLists.txt @@ -36,6 +36,7 @@ if(ENABLE_RFNOC) rfnoc_nullsource_ce_rx.cpp rfnoc_rx_to_file.cpp rfnoc_radio_loopback.cpp + replay_samples_from_file.cpp benchmark_streamer.cpp ) endif(ENABLE_RFNOC) diff --git a/host/examples/replay_samples_from_file.cpp b/host/examples/replay_samples_from_file.cpp index 8f022b4f2..9bd805ed8 100644 --- a/host/examples/replay_samples_from_file.cpp +++ b/host/examples/replay_samples_from_file.cpp @@ -69,7 +69,7 @@ int UHD_SAFE_MAIN(int argc, char* argv[]) ("radio-args", po::value(&radio_args), "radio arguments") ("replay-id", po::value(&replay_id)->default_value(0), "replay block to use (e.g., 0 or 1)") ("replay_chan", po::value(&replay_chan)->default_value(0), "replay channel to use") - ("nsamps", po::value(&nsamps)->default_value(0), "number of samples to play (0 for infinite)") + ("nsamps", po::value(&nsamps)->default_value(0), "number of samples to play (0 for infinite)") ("file", po::value(&file)->default_value("usrp_samples.dat"), "name of the file to read binary samples from") ("freq", po::value(&freq), "RF center frequency in Hz") ("rate", po::value(&rate), "rate of radio block") @@ -408,4 +408,4 @@ int UHD_SAFE_MAIN(int argc, char* argv[]) cout << endl; return EXIT_SUCCESS; -} \ No newline at end of file +} -- cgit v1.2.3