Commit graph

7 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
3f6a989805 tests: Fix client_zero_test flush bit test
A test to check the address was using a & instead of a %, resulting in
a -Wtautological-compare.
2020-04-08 16:35:03 -05: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
0a49a8844a rfnoc: Create mock factory
This is an API that allows creating mock block controllers, to write
unit tests for block controllers. See rfnoc_blocks_test for an example
how to use them.
2020-01-29 08:57:25 -06:00
Martin Braun
932ff0537b rfnoc: client_zero can track num SEPs and num ctrl EPs separately 2019-11-26 11:49:39 -08:00
Ashish Chaudhari
b1cf8ce634 rfnoc: Support for new backend iface plus fixes
- Add support for new backend iface with max_async_msgs and mtu
  moved to after the noc ID
- Fixed offsets for block info registers
2019-11-26 11:49:17 -08:00
Brent Stapleton
cd36d9d2d3 rfnoc: adding client_zero
- Adding client_zero class, which gathers information about our device
form the global registers on port 0 of the RFNoC backend registers.
- adding unit tests to exercise client_zero
- mock_reg_iface class: adding fake register_iface so we can run
unit tests in software only

Co-authored-by: Martin Braun <martin.braun@ettus.com>
2019-11-26 11:49:16 -08:00