diff options
author | Martin Braun <martin.braun@ettus.com> | 2021-01-08 13:36:54 +0100 |
---|---|---|
committer | Aaron Rossetto <aaron.rossetto@ni.com> | 2021-03-04 08:18:41 -0600 |
commit | 07f591aea9d3849a25e50428aeeb83d7aa641b7e (patch) | |
tree | b3998d5abf7a9b0642a488b996efd13fc5e8133f /host | |
parent | d83cac90839c9cfcbc4e4aceb9cf6a3e7daa3a0d (diff) | |
download | uhd-07f591aea9d3849a25e50428aeeb83d7aa641b7e.tar.gz uhd-07f591aea9d3849a25e50428aeeb83d7aa641b7e.tar.bz2 uhd-07f591aea9d3849a25e50428aeeb83d7aa641b7e.zip |
lib: lmx2592: Comment out some unused constants
These constants are useful for reference, but they're not used. We keep
them in-tree (as comments) because of their utility, but comment them
out to fix clang warnings.
Diffstat (limited to 'host')
-rw-r--r-- | host/lib/usrp/common/lmx2592.cpp | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/host/lib/usrp/common/lmx2592.cpp b/host/lib/usrp/common/lmx2592.cpp index ed3d22574..c80361f4a 100644 --- a/host/lib/usrp/common/lmx2592.cpp +++ b/host/lib/usrp/common/lmx2592.cpp @@ -14,8 +14,10 @@ using namespace uhd; namespace { // clang-format off -constexpr double LMX2592_DOUBLER_MAX_REF_FREQ = 60e6; -constexpr double LMX2592_MAX_FREQ_PFD = 125e6; +// Some constexprs are unused, but kept for reference. In this case, we keep +// them as comments so compilers don't throw warnings. +//constexpr double LMX2592_DOUBLER_MAX_REF_FREQ = 60e6; +//constexpr double LMX2592_MAX_FREQ_PFD = 125e6; constexpr double LMX2592_MIN_REF_FREQ = 5e6; constexpr double LMX2592_MAX_REF_FREQ = 1400e6; @@ -23,7 +25,7 @@ constexpr double LMX2592_MAX_REF_FREQ = 1400e6; constexpr double LMX2592_MAX_OUT_FREQ = 9.8e9; constexpr double LMX2592_MIN_OUT_FREQ = 20e6; -constexpr double LMX2592_MIN_VCO_FREQ = 3.55e9; +//constexpr double LMX2592_MIN_VCO_FREQ = 3.55e9; constexpr double LMX2592_MAX_VCO_FREQ = 7.1e9; constexpr double LMX2592_MAX_DOUBLER_INPUT_FREQ = 200e6; @@ -47,10 +49,11 @@ const std::array<double, NUM_DIVIDERS> LMX2592_CHDIV_MIN_FREQ = { 3550e6, 1775e6, 1183.33e6, 887.5e6, 591.67e6, 443.75e6, 295.83e6, 221.88e6, 147.92e6, 110.94e6, 55.47e6, 36.98e6, 27.73e6, 20e6 }; -constexpr std::array<double, NUM_DIVIDERS> LMX2592_CHDIV_MAX_FREQ = { - 6000e6, 3550.0e6, 2366.67e6, 1775.00e6, 1183.33e6, 887.50e6, 591.67e6, - 443.75e6, 295.83e6, 221.88e6, 110.94e6, 73.96e6, 55.47e6, 36.98e6 -}; +// Unused, but kept for reference +//constexpr std::array<double, NUM_DIVIDERS> LMX2592_CHDIV_MAX_FREQ = { + //6000e6, 3550.0e6, 2366.67e6, 1775.00e6, 1183.33e6, 887.50e6, 591.67e6, + //443.75e6, 295.83e6, 221.88e6, 110.94e6, 73.96e6, 55.47e6, 36.98e6 +//}; constexpr int NUM_CHDIV_STAGES = 3; constexpr std::array<std::array<int, NUM_CHDIV_STAGES>, NUM_DIVIDERS> LMX2592_CHDIV_SEGS = { { { 1, 1, 1 }, |