UHD: minor aesthetic corrections

This commit is contained in:
Xavier Arteaga 2020-06-12 12:49:52 +02:00 committed by Xavier Arteaga
parent 0f24d510ac
commit 180fb42dc3
2 changed files with 11 additions and 11 deletions

View File

@ -69,13 +69,13 @@ private:
typedef uhd::rfnoc::duc_block_ctrl duc_ctrl_t;
#endif // UHD_ENABLE_CUSTOM_RFNOC
const std::string DMA_FIFO_BLOCK_NAME = "DmaFIFO";
const double SETUP_TIME_S = 1.0;
const uhd::fs_path TREE_MBOARD_SENSORS = "/mboards/0/sensors";
const uhd::fs_path TREE_RX_SENSORS = "/mboards/0/dboards/A/rx_frontends/0/sensors";
const std::string TX_ANTENNA_PORT = "TX/RX";
const std::string RX_ANTENNA_PORT = "RX2";
const size_t spp = 246;
const std::string DMA_FIFO_BLOCK_NAME = "DmaFIFO";
const std::chrono::milliseconds SETUP_TIME_MS = std::chrono::milliseconds(1000UL);
const uhd::fs_path TREE_MBOARD_SENSORS = "/mboards/0/sensors";
const uhd::fs_path TREE_RX_SENSORS = "/mboards/0/dboards/A/rx_frontends/0/sensors";
const std::string TX_ANTENNA_PORT = "TX/RX";
const std::string RX_ANTENNA_PORT = "RX2";
const size_t spp = 246;
// Primary parameters
double master_clock_rate = 184.32e6;
@ -191,7 +191,7 @@ private:
}
// Sleep for some time
std::this_thread::sleep_for(std::chrono::milliseconds(int64_t(1000 * SETUP_TIME_S)));
std::this_thread::sleep_for(SETUP_TIME_MS);
// Create DDC control
ddc_ctrl.resize(nof_radios);

View File

@ -37,7 +37,7 @@ class rf_uhd_safe_interface
{
private:
#ifdef ENABLE_UHD_X300_FW_RESET
const double X300_SLEEP_TIME_S = 5.0;
const std::chrono::milliseconds X300_SLEEP_TIME_MS = std::chrono::milliseconds(5000UL);
#endif /* ENABLE_UHD_X300_FW_RESET */
virtual uhd_error usrp_make_internal(const uhd::device_addr_t& dev_addr) = 0;
@ -98,8 +98,8 @@ protected:
}
// Sleep for some time
Info("Wait " << std::to_string(X300_SLEEP_TIME_S) << " seconds");
std::this_thread::sleep_for(std::chrono::milliseconds(int64_t(1000 * X300_SLEEP_TIME_S)));
Info("Wait " << X300_SLEEP_TIME_MS.count() << " ms");
std::this_thread::sleep_for(X300_SLEEP_TIME_MS);
// Try opening the device one more time
return usrp_make_internal(dev_addr);