aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib/utils/CMakeLists.txt
Commit message (Collapse)AuthorAgeFilesLines
* cmake: remove redundant includeMichael Dickens2021-07-061-1/+0
|
* cmake: correctly set and unset any CMAKE_REQUIRED variablesMichael Dickens2021-07-061-5/+5
|
* utils: Expose CHDR Parsing APISamuel O'Brien2020-07-131-0/+2
| | | | | | | | | | | | This commit introduces a new public api in uhd::utils which allows serializing and deserializing chdr packets. As far as testing, this commit adds the chdr_parse_test test. It uses a wireshark trace located in rfnoc_packets_*.cpp as well as hand coded packets from hardcoded_packets.cpp to test the serialization and deserialization process Signed-off-by: Samuel O'Brien <sam.obrien@ni.com>
* uhd: Add fuzzy serial number checkingLane Kolbly2020-04-081-0/+1
| | | | | | | | | We have integer 32-bit serial numbers for MPM devices, for example "1234abcd". For serial numbers which have less than eight digits, e.g. "123abcd", a user may feel inclined to prefix this number with a 0 when they are searching for devices, e.g. "0123abcd". This change makes it so that specifying "0123abcd" will match a device with serial number "123ABCD".
* rfnoc: Adding rfnoc_graph utilitiesBrent Stapleton2019-11-261-0/+1
| | | | | | | Adding graph_utils to keep rfnoc_graph utilities to contain helper function and commonly used algorithms for the rfnoc_graph. These functions aren't core to the rfnoc_graph's functionality, so we'll keep them out of its API.
* lib: Simplify implementation of uhd::get_system_time() to use <chrono>Martin Braun2019-11-261-62/+0
| | | | | | | uhd::get_system_time() is currently only used in USRP1 code, and it turns out that our "optimized", platform-dependent implementation still is a little slower than straight-up chrono. We therefore remove all the special cases, and replace them with a single, standard solution.
* uhd: Add thread affinity utility functionsAaron Rossetto2019-11-261-0/+43
|
* utils: cast: Add from_str() typecastMartin Braun2019-11-261-0/+1
| | | | | This is the inverse to std::to_string(), and we can overload it with UHD-internal types.
* uhd: mpm: update all license header w/ "-or-later"Brent Stapleton2019-03-081-1/+1
| | | | Updating all SPDX license identifiers to include "-or-later"
* cmake: Update coding style to use lowercase commandsMartin Braun2018-11-141-77/+77
| | | | | | | | | | | | | | | | | Also updates our coding style file. Ancient CMake versions required upper-case commands. Later command names became case-insensitive. Now the preferred style is lower-case. Run the following shell code (with GNU compliant sed): cmake --help-command-list | grep -v "cmake version" | while read c; do echo 's/\b'"$(echo $c | tr '[:lower:]' '[:upper:]')"'\(\s*\)(/'"$c"'\1(/g' done > convert.sed \ && git ls-files -z -- bootstrap '*.cmake' '*.cmake.in' \ '*CMakeLists.txt' | xargs -0 gsed -i -f convert.sed && rm convert.sed (Make sure the backslashes don't get mangled!)
* lib: Fixing config file path for some Windows buildsAndrew Lynch2018-03-281-6/+0
|
* uhd: Move internal headers to uhdlib/Martin Braun2018-03-141-2/+0
| | | | | | | | | | | | | | | | To avoid the proliferation of additional include directories and multiple ways of including project-local headers, we now default to moving all headers that are used across UHD into the uhdlib/ subdirectory. Some #include statements were also reordered as they were modified for closer compliance with the coding guidelines. Internal cpp source files should now include files like this: #include <uhdlib/rfnoc/ctrl_iface.hpp> Reviewed-by: Ashish Chaudhari <ashish.chaudhari@ettus.com>
* uhd: Moved get_system_time outside of public APIMartin Braun2018-03-051-0/+63
| | | | | | | uhd::get_system_time() is an abstracted way of reading back a time, and is not UHD-specific. As such, there's no reason to keep it in the public part of the API where we're contractually obligated not to touch it. Instead, moving it to the internal API space.
* lib: Add 'prefs' APIMartin Braun2018-02-201-0/+7
| | | | | | | | | | | | | This defines and reads configuration files that can be used to customize UHD's behaviour. On Unix systems, they default to: /etc/uhd/uhd.conf $APPDATA/.uhd/uhd.conf On Windows systems, it will look in: %ProgramData%/uhd/uhd.conf %AppData%/.uhd/uhd.conf
* lib: Add path_expandvars() internal API callMartin Braun2018-02-201-0/+1
|
* uhd: Update license headersMartin Braun2018-02-191-0/+1
| | | | | | | All copyright is now attributed to "Ettus Research, a National Instruments company". SPDX headers were also updated to latest version 3.0.
* rfnoc: Factored out FPGA compat checkMartin Braun2018-02-191-0/+1
| | | | | - Applied changes to DUC and DDC blocks - Fixed minor formatting
* lib: Add config_parser classMartin Braun2018-02-011-0/+1
| | | | | | | This class is not publicly exported. It is meant to read config files in the INI format. Reviewed-by: Brent Stapleton <brent.stapleton@ettus.com>
* Move all license headers to SPDX format.Martin Braun2017-12-221-12/+1
|
* uhd: Changed mboard_eeprom_t interface, refactored MB EEPROM codeMartin Braun2017-09-291-0/+3
| | | | | | | | | | | | - uhd::usrp::mboard_eeprom_t is now simply a map. Its commit() method has no utility being a public API call, because the user never gets access to the appropriate I2C object (Minor API breakage) - The central mboard_eeprom.cpp file was broken up and put into many smaller compilation units in every device's implementation folder. - Renamed some of the constants (e.g. B000_* -> USRP1_*, N100_* -> N200_*) - Removed the N000_* EEPROM code, because, well, you know, there's no such device
* C API: Added logging macrosMartin Braun2017-07-211-0/+1
|
* utils: add set_thread_name API call, move thread_priority to threadAndrej Rode2017-06-291-3/+33
|
* utils: introduce new logging API and remove msg APIAndrej Rode2017-02-201-1/+0
|
* cmake: Add some quotes on case certain variables are blankMartin Braun2017-01-041-2/+2
|
* cmake: allow UHD library and utilities to be in separate lib directoriesNicholas Corgan2016-06-161-1/+8
|
* b200: Factored ihex routines out of b200_ifaceMartin Braun2015-12-141-0/+1
|
* uhd: C API wrapperNicholas Corgan2015-08-061-0/+6
| | | | | | | * multi_usrp, multi_usrp_clock, and associated classes accessible through C * Added Doxygen documentation explaining structure and API * Simple RX and TX streaming examples * Unit tests for different parts of C interface and C++ error conversion
* Merging new UHD_IMAGES_DIR utilities and bug fixes.Ben Hilburn2015-01-271-1/+0
| | | | Also includes NI-USRP Windows Registry Key fixes.
* Restoring compatibility with CMake 2.6Nicholas Corgan2014-08-141-1/+1
| | | | | * The UNSET command didn't exist back then, but using SET with no value does the same thing * CMake 2.6 doesn't like nested parantheses in IF statements, so tweak IF/ELSE statements
* Merging USRP X300 and X310 support!!Ben Hilburn2014-02-041-0/+2
|
* uhd: work on moving binaries to lib/uhdJosh Blum2012-11-081-4/+4
|
* uhd: manually link into pthreads hereJosh Blum2011-12-271-0/+1
|
* usrp: basically working iq cal on txJosh Blum2011-11-101-0/+1
|
* uhd: removed wax and props utilsJosh Blum2011-11-071-1/+0
|
* uhd: added tasks to simplify thread spawning use casesJosh Blum2011-07-131-0/+1
|
* uhd: removed deprecated warning API, log+msg now in APIJosh Blum2011-05-181-1/+0
|
* uhd: replaced warning post with calls to UHD_MSG(warning)Josh Blum2011-05-041-0/+1
| | | | | The message api can support warnings, error, and status messages. The default handler is to stdio, but the user can change this.
* uhd: moved the logger into the utils subdirJosh Blum2011-05-041-0/+1
|
* uhd: removed constants.hpp.in, replaced w/ per source compile definesJosh Blum2011-04-191-0/+13
|
* uhd: always link winsock2 on windows, disable pthread SCHED_RR for cygwinJosh Blum2011-04-061-0/+5
|
* uhd: moved exception to top level includeJosh Blum2011-02-241-1/+0
|
* uhd: added a bunch of custom exceptions, not used yetJosh Blum2011-02-241-1/+1
|
* uhd: replace header checks in cmake files with more robust compile checks ↵Josh Blum2011-02-211-12/+31
| | | | | | for features implemented different ifdefs in the cpp files
* uhd: use source properties to set flags and defs not globally, but only for ↵Josh Blum2011-02-171-4/+14
| | | | the source
* uhd: make static block safe with a try,catch,printJosh Blum2011-01-141-1/+2
|
* uhd: use the include subdir macro to simplify the lib subdirs cmakelistsJosh Blum2010-12-201-9/+11
|
* uhd: added macro to enable/disable componentsJosh Blum2010-11-291-0/+2
| | | | | | libuhd prints summary of components added newline prints before config checks
* uhd: added image utils code to search the images paths for image filesJosh Blum2010-08-191-0/+1
|
* uhd: created library code to handle paths for images and modulesJosh Blum2010-08-091-0/+1
| | | | | | | | - read from environment variable paths - utility functions to get paths and search for images - modified load modules to call the utility functions - added private header constants.hpp to contain cmake variables of interest - modified version.cpp to use this constants file
* uhd: moved utils specific cmake stuff into utils cmake fileJosh Blum2010-08-081-0/+59
|