Commit graph

22 commits

Author SHA1 Message Date
Martin Braun
107a49c0c2 host: Update code base using clang-tidy
The checks from the new clang-tidy file are applied to the source tree
using:

$ find . -name "*.cpp" | sort -u | xargs \
    --max-procs 8 --max-args 1 clang-tidy --format-style=file \
    --fix -p /path/to/compile_commands.json
2021-03-04 08:07:26 -06:00
Martin Braun
876d4150aa uhd: Apply clang-format against all .cpp and .hpp files in host/
Note: template_lvbitx.{cpp,hpp} need to be excluded from the list of
files that clang-format gets applied against.
2020-03-03 08:51:32 -06:00
Martin Braun
0303f1ed55 lib: Purge all references to boost::this_thread::sleep()
Replace with std::this_thread::sleep_for().
2018-04-30 17:10:26 -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
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
4f948e2c8b Move all license headers to SPDX format. 2017-12-22 10:45:51 -08:00
Andrej Rode
21aad77c9c utils: introduce new logging API and remove msg API 2017-02-20 17:13:15 -08:00
Martin Braun
99c2730bc9 Remove all boost:: namespace prefix for uint32_t, int32_t etc. (fixed-width types)
- Also removes all references to boost/cstdint.hpp and replaces it with
  stdint.h (The 'correct' replacement would be <cstdint>, but not all of our
  compilers support that).
2016-11-08 08:02:22 -08:00
Nicholas Corgan
1200721b69 Warning fixes
* CMake now not applying C++ flags to C files
* GCC 4.4: anti-aliasing rules
* MSVC: narrowing, differences in subclass function parameters
* Clang: uninitialized variables
2015-03-27 09:35:29 -07:00
Ben Hilburn
51de21efd7 Merge of mwest's fix to the sse2_fc32_to_sc16 converter. 2013-12-11 18:01:41 -08:00
Ben Hilburn
9e47ad607b Squashed merge of Coverity fixes. 2013-11-27 12:11:23 -08:00
Josh Blum
0aeac60394 uhd: allow for 16 bit i2c and eeprom addrs 2013-07-24 17:46:04 -07:00
Josh Blum
c5223d1922 usrp1: fix eeprom write capability through fx2
The vectorized eeprom write was faster but broken,
removed overload which falls back to the one byte at a time.
2013-03-25 13:12:55 -07:00
Nicholas Corgan
eaadc6e89a Merge branch 'maint34' into maint
Conflicts:
	host/lib/usrp/b100/b100_impl.cpp
	host/lib/usrp/usrp1/usrp1_impl.hpp
2012-11-16 16:04:26 -08:00
Nicholas Corgan
011f63d19d lib/cmake: CPack source work
* Removed all host code dependencies on firmware headers
* Put in CMake settings for CPack source
2012-11-16 15:54:09 -08:00
Josh Blum
c6fd517ad7 fx2: simplify i2c code and overload eeprom read/write
Overload eeprom routines to do it in 1 transaction,
since default will split it up into many for each byte.
2012-03-26 14:30:06 -07:00
Josh Blum
1463a78fd2 b100: reset/reenumerate fx2 for bad endpoint state
Determine state of control endpoint,
re-enumerate to put in a known state,
rerun some initialization code.
2012-02-14 15:01:15 -08:00
Josh Blum
8442ea5e2c b100/usrp1: various tweaks for compiler warns and valgrind 2012-02-09 19:02:43 -08:00
Josh Blum
b071cbc184 usrp1: use fixed bit width integer for hash 2012-01-17 09:49:36 -08:00
Josh Blum
ddbada4e64 uhd: fixed some warnings with gcc on macosx 2011-07-25 17:49:30 -07:00
Josh Blum
bedd308e60 uhd: some tweaks to fix msvc warnings 2011-07-08 17:55:49 -07:00
Josh Blum
38eefb2eea usrp: moved fx2 stuff into common folder 2011-07-01 14:03:04 -07:00
Renamed from host/lib/usrp/fx2/fx2_ctrl.cpp (Browse further)