Commit graph

10 commits

Author SHA1 Message Date
Martin Braun
d4eaee390d lib: move atomic.hpp and system_time.hpp to uhdlib 2018-04-06 18:39:11 -07:00
Patrick Sisterhen
85a975942f lib: add auto_timer profiling utility
Note: This tool is not considered done, complete, unchangeable, or
anything other than experimental.
2018-03-16 10:48:46 -07:00
Martin Braun
6652eb4a03 uhd: Move internal headers to uhdlib/
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>
2018-03-14 15:17:44 -07:00
Martin Braun
9fb055a78a lib: Add 'prefs' API
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
2018-02-20 16:23:46 -08:00
Martin Braun
a99e89a689 lib: Add path_expandvars() internal API call 2018-02-20 16:23:46 -08:00
Martin Braun
ae5211d71d uhd: Update license headers
All copyright is now attributed to "Ettus Research, a National
Instruments company".

SPDX headers were also updated to latest version 3.0.
2018-02-19 16:54:52 -08:00
Martin Braun
74f45ae2a7 rfnoc: Factor out ceil_log2() into central location
- New file: uhdlib/utils/math.hpp
2018-02-19 14:51:47 -08:00
Martin Braun
eff796f64b rfnoc: Factored out FPGA compat check
- Applied changes to DUC and DDC blocks
- Fixed minor formatting
2018-02-19 14:51:47 -08:00
Martin Braun
4ebfea45f3 lib: Add config_parser class
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>
2018-02-01 06:35:37 +01:00
Martin Braun
c48c57073d uhd: Add narrow_cast and narrow
Reviewed-by: Ashish Chaudhari <ashish.chaudhari@ettus.com>
2018-01-12 13:18:03 -08:00