From 0d14cb248b90deac68fbba58ce8c6c73f3f6d541 Mon Sep 17 00:00:00 2001 From: Martin Braun Date: Thu, 18 Aug 2016 09:36:09 -0700 Subject: utils: uhd_config_info can now also report image dir and pkg path --- host/utils/uhd_config_info.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/host/utils/uhd_config_info.cpp b/host/utils/uhd_config_info.cpp index c4034e560..78fcb201b 100644 --- a/host/utils/uhd_config_info.cpp +++ b/host/utils/uhd_config_info.cpp @@ -17,6 +17,7 @@ #include #include +#include #include #include @@ -37,6 +38,8 @@ int UHD_SAFE_MAIN(int argc, char* argv[]) { ("install-prefix", "Print install prefix") ("boost-version", "Print Boost version") ("libusb-version", "Print libusb version") + ("pkg-path", "Print pkg path") + ("images-dir", "Print images dir") ("print-all", "Print everything") ("version", "Print this UHD build's version") ("help", "Print help message") @@ -85,6 +88,12 @@ int UHD_SAFE_MAIN(int argc, char* argv[]) { std::string _libusb_version = uhd::build_info::libusb_version(); std::cout << "Libusb version: " << (_libusb_version.empty() ? "N/A" : _libusb_version) << std::endl; } + if(vm.count("pkg-path") > 0 or print_all) { + std::cout << "Package path: " << uhd::get_pkg_path() << std::endl; + } + if(vm.count("images-dir") > 0 or print_all) { + std::cout << "Images directory: " << uhd::get_images_dir("") << std::endl; + } return EXIT_SUCCESS; } -- cgit v1.2.3 From e1fd5b6b1f044e7f42e6c6d889e3072c2cec0129 Mon Sep 17 00:00:00 2001 From: Martin Braun Date: Thu, 18 Aug 2016 09:36:21 -0700 Subject: cmake: Updated vendor name for CPack --- host/cmake/Modules/UHDPackage.cmake | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/host/cmake/Modules/UHDPackage.cmake b/host/cmake/Modules/UHDPackage.cmake index b9fcdf9ed..6c36407b9 100644 --- a/host/cmake/Modules/UHDPackage.cmake +++ b/host/cmake/Modules/UHDPackage.cmake @@ -1,5 +1,5 @@ # -# Copyright 2010-2014 Ettus Research LLC +# Copyright 2010-2016 Ettus Research LLC # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -114,7 +114,7 @@ ENDIF() # Setup CPack General ######################################################################## SET(CPACK_PACKAGE_DESCRIPTION_SUMMARY "Ettus Research - USRP Hardware Driver") -SET(CPACK_PACKAGE_VENDOR "Ettus Research LLC") +SET(CPACK_PACKAGE_VENDOR "Ettus Research (National Instruments)") SET(CPACK_PACKAGE_CONTACT "Ettus Research ") SET(CPACK_PACKAGE_VERSION "${UHD_VERSION}") SET(CPACK_RESOURCE_FILE_WELCOME ${CMAKE_SOURCE_DIR}/README.md) -- cgit v1.2.3 From 41d48c939f0bed80ba4af4a92cf8483cd42ce6a8 Mon Sep 17 00:00:00 2001 From: Martin Braun Date: Wed, 17 Aug 2016 13:52:40 -0700 Subject: cmake: Make -Og the default debug flags when using gcc --- host/CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/host/CMakeLists.txt b/host/CMakeLists.txt index c388a2ada..643857708 100644 --- a/host/CMakeLists.txt +++ b/host/CMakeLists.txt @@ -50,6 +50,7 @@ IF(${CMAKE_CXX_COMPILER_ID} STREQUAL "GNU") ELSE() MESSAGE(WARNING "\nCannot determine the version of the compiler selected to build UHD (GCC : ${CMAKE_CXX_COMPILER}). This build may or not work. We highly recommend using GCC version ${GCC_MIN_VERSION} or more recent.") ENDIF() + SET(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -Og") ELSEIF(${CMAKE_CXX_COMPILER_ID} STREQUAL "Clang") EXECUTE_PROCESS(COMMAND ${CMAKE_CXX_COMPILER} -v -- cgit v1.2.3 From 99825c81d3e766177b0bdc57e5315a8c75a7dc32 Mon Sep 17 00:00:00 2001 From: Martin Braun Date: Thu, 18 Aug 2016 12:48:03 -0700 Subject: docs: Minor updates to device synchronization manual page --- host/docs/sync.dox | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/host/docs/sync.dox b/host/docs/sync.dox index 5a0870bea..8c609f407 100644 --- a/host/docs/sync.dox +++ b/host/docs/sync.dox @@ -64,10 +64,10 @@ synchronize multiple pairs of devices. \section sync_time Synchronizing the Device Time The purpose of the PPS signal is to synchronously latch a time into the -device. You can use the `set_time_next_pps(...)` function to either +device. You can use the uhd::multi_usrp::set_time_next_pps() function to either initialize the sample time to 0 or an absolute time, such as GPS time or UTC time. For the purposes of synchronizing devices, it doesn't matter -what time you initialize to when using `set_time_next_pps(...)`. +what time you initialize to when using uhd::multi_usrp::set_time_next_pps(). \subsection sync_time_reg Method 1 - poll the USRP time registers @@ -100,15 +100,13 @@ PPS edge, and the user can also parse this string to determine GPS time: usrp->set_time_next_pps(uhd::time_spec_t(gps_time+1)); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -\subsection sync_time_internalgps Method 3 - internal GPSDO +\subsection sync_time_mimocable Method 3 - MIMO cable -USRP devices with internal GPSDOs properly configured will automatically -configure themselves to set the VITA time to current UTC time. See \ref page_gpsdo -for more details. +Note: This only applies to USRP2 and N200/N210. This method does *not* +require a separate PPS input to the devices, but it is limited to +a total of 2 USRPs. -\subsection sync_time_mimocable Method 4 - MIMO cable - -A USRP device can synchronize its time to another USRP device via the +A USRP2 device can synchronize its time to another USRP device via the MIMO cable. Unlike the other methods, this does not use a real "pulse per second". Rather, the USRP device sends an encoded time message over the MIMO cable. The slave device will automatically synchronize to the -- cgit v1.2.3 From 358b1fc3a7a0090aee5532f4ff20b06f2ad2d75f Mon Sep 17 00:00:00 2001 From: Martin Braun Date: Thu, 18 Aug 2016 12:48:03 -0700 Subject: docs: Minor updates to device synchronization manual page --- host/docs/sync.dox | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/host/docs/sync.dox b/host/docs/sync.dox index 5a0870bea..8c609f407 100644 --- a/host/docs/sync.dox +++ b/host/docs/sync.dox @@ -64,10 +64,10 @@ synchronize multiple pairs of devices. \section sync_time Synchronizing the Device Time The purpose of the PPS signal is to synchronously latch a time into the -device. You can use the `set_time_next_pps(...)` function to either +device. You can use the uhd::multi_usrp::set_time_next_pps() function to either initialize the sample time to 0 or an absolute time, such as GPS time or UTC time. For the purposes of synchronizing devices, it doesn't matter -what time you initialize to when using `set_time_next_pps(...)`. +what time you initialize to when using uhd::multi_usrp::set_time_next_pps(). \subsection sync_time_reg Method 1 - poll the USRP time registers @@ -100,15 +100,13 @@ PPS edge, and the user can also parse this string to determine GPS time: usrp->set_time_next_pps(uhd::time_spec_t(gps_time+1)); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -\subsection sync_time_internalgps Method 3 - internal GPSDO +\subsection sync_time_mimocable Method 3 - MIMO cable -USRP devices with internal GPSDOs properly configured will automatically -configure themselves to set the VITA time to current UTC time. See \ref page_gpsdo -for more details. +Note: This only applies to USRP2 and N200/N210. This method does *not* +require a separate PPS input to the devices, but it is limited to +a total of 2 USRPs. -\subsection sync_time_mimocable Method 4 - MIMO cable - -A USRP device can synchronize its time to another USRP device via the +A USRP2 device can synchronize its time to another USRP device via the MIMO cable. Unlike the other methods, this does not use a real "pulse per second". Rather, the USRP device sends an encoded time message over the MIMO cable. The slave device will automatically synchronize to the -- cgit v1.2.3