diff options
author | Lane Kolbly <lane.kolbly@ni.com> | 2021-12-06 13:53:22 -0600 |
---|---|---|
committer | Aaron Rossetto <aaron.rossetto@ni.com> | 2021-12-10 06:30:42 -0800 |
commit | da1ee1aa71501665b142cdb64fd4daa02793fbc1 (patch) | |
tree | bdd6e1fee791477bbe28170a9e314f8687c695bf /host/lib/rfnoc | |
parent | ece958327caf4db4daee79ac2d3935bae3e1e87c (diff) | |
download | uhd-da1ee1aa71501665b142cdb64fd4daa02793fbc1.tar.gz uhd-da1ee1aa71501665b142cdb64fd4daa02793fbc1.tar.bz2 uhd-da1ee1aa71501665b142cdb64fd4daa02793fbc1.zip |
host: Make radio_control constants an enum
In C++, variables whose address are taken must be defined somewhere.
PERIPH_BASE had no such definition, so on some compilers/systems caused
a linker error. This commit switches to using enums to prevent this
happening again in the future.
Diffstat (limited to 'host/lib/rfnoc')
-rw-r--r-- | host/lib/rfnoc/radio_control_impl.cpp | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/host/lib/rfnoc/radio_control_impl.cpp b/host/lib/rfnoc/radio_control_impl.cpp index 697bb2549..131c879b7 100644 --- a/host/lib/rfnoc/radio_control_impl.cpp +++ b/host/lib/rfnoc/radio_control_impl.cpp @@ -28,34 +28,6 @@ const std::string radio_control::ALL_GAINS = ""; const uint16_t radio_control_impl::MAJOR_COMPAT = 0; const uint16_t radio_control_impl::MINOR_COMPAT = 1; -const uint32_t radio_control_impl::regmap::REG_COMPAT_NUM; -const uint32_t radio_control_impl::regmap::REG_RADIO_WIDTH; -const uint32_t radio_control_impl::regmap::RADIO_BASE_ADDR; -const uint32_t radio_control_impl::regmap::REG_CHAN_OFFSET; -const uint32_t radio_control_impl::regmap::RADIO_ADDR_W; -const uint32_t radio_control_impl::regmap::REG_LOOPBACK_EN; -const uint32_t radio_control_impl::regmap::REG_RX_STATUS; -const uint32_t radio_control_impl::regmap::REG_RX_CMD; -const uint32_t radio_control_impl::regmap::REG_RX_CMD_NUM_WORDS_LO; -const uint32_t radio_control_impl::regmap::REG_RX_CMD_NUM_WORDS_HI; -const uint32_t radio_control_impl::regmap::REG_RX_CMD_TIME_LO; -const uint32_t radio_control_impl::regmap::REG_RX_CMD_TIME_HI; -const uint32_t radio_control_impl::regmap::REG_RX_MAX_WORDS_PER_PKT; -const uint32_t radio_control_impl::regmap::REG_RX_ERR_PORT; -const uint32_t radio_control_impl::regmap::REG_RX_ERR_REM_PORT; -const uint32_t radio_control_impl::regmap::REG_RX_ERR_REM_EPID; -const uint32_t radio_control_impl::regmap::REG_RX_ERR_ADDR; -const uint32_t radio_control_impl::regmap::REG_TX_IDLE_VALUE; -const uint32_t radio_control_impl::regmap::REG_TX_ERROR_POLICY; -const uint32_t radio_control_impl::regmap::REG_TX_ERR_PORT; -const uint32_t radio_control_impl::regmap::REG_TX_ERR_REM_PORT; -const uint32_t radio_control_impl::regmap::REG_TX_ERR_REM_EPID; -const uint32_t radio_control_impl::regmap::REG_TX_ERR_ADDR; -const uint32_t radio_control_impl::regmap::RX_CMD_STOP; -const uint32_t radio_control_impl::regmap::RX_CMD_FINITE; -const uint32_t radio_control_impl::regmap::RX_CMD_CONTINUOUS; -const uint32_t radio_control_impl::regmap::RX_CMD_TIMED_POS; - const uhd::fs_path radio_control_impl::DB_PATH("dboard"); const uhd::fs_path radio_control_impl::FE_PATH("frontends"); |