Commit Graph

10516 Commits

Author SHA1 Message Date
Aki Tomita
261f6ec1df tests: fix when the rx cmd's stream_now is set 2023-08-24 19:59:44 -05:00
Grant Meyerhoff
51e6ebeae6 docs: add python package requirement for usrpctl MPM reset 2023-08-24 19:59:13 -05:00
Wade Fife
f07f4373ec fpga: Clear clang-format settings for FPGA code
Vitis HLS uses its own version of clang that's different from what's
used by UHD. This change clears the clang-format settings for FPGA
code to be compatible with Vitis.
2023-08-17 10:51:55 -05:00
Grant Meyerhoff
3f2d681de0 docs: fix typo and consistency in usrpctl docs 2023-08-16 14:50:11 -05:00
Lars Amsel
561d622a16 host: doc: Add documentation for tertiary, quaternary QSFP adapter 2023-08-16 14:45:50 -05:00
Martin Braun
ebd5dd03cf Apply clang-formatting to all C/C++ files
- Used clang-format version 14
- Ran ./tools/clang-formatter.sh apply
2023-08-07 15:35:56 -05:00
Martin Braun
0cc18f7e8b tools: Add clang-formatting tools
This adds two tools to the ./tools/ subdirectory:

== clang-formatter.sh ==

This is simply a small shell script that can be executed from the top of
the UHD repository, and it will format all files according the the
.clang-format file. It can be executed as such:

    $ CLANG_FORMAT=clang-format-14 ./tools/clang-formatter.sh apply

Specifying a clang-format executable is optional, but note that
clang-format 14.0 should be used.

== run-clang-format.py ==

This is a Python script that is a modified version from
https://github.com/gnuradio/clang-format-lint-action/blob/ \
    0b0cb14cf220a070d2a8b2610bd74ad1546252a1/run-clang-format.py

It was modified to add --patch-file option.

Alongside this file is a .clang-format-ignore file, which is sourced
from this script. The command can be run as such:

    $ ./tools/run-clang-format.py \
        --clang-format-executable clang-format-14 \
	--extensions c,cpp,h,hpp,hpp.in,ipp \
	-r \
	--patch-file format.patch \
	/path/to/uhd-repo

It will provide both a nice output summary as well as a patch file that
can be consumed with `patch -p0 < format.patch`.
2023-08-07 15:35:56 -05:00
Martin Braun
030678a7f6 Modify files for treatment with clang-format
Some files in the source tree need some treatment before clang-format
can automatically be applied to all files.

This commit adds some 'clang-format off' statements and some manual
pre-formatting in order to not cause havoc when clang-format is applied
to the entire source tree.
2023-08-07 15:35:56 -05:00
Martin Braun
b3541dd6d9 Update clang-format for version 14
This was done by running clang-format-14 --dump-config -style:file in
the UHD source tree, and use the output to update .clang-format. Some of
the newer options were then hand-modified to more closely match the
coding standard of UHD.

Note that this new config file is not compatible with older versions of
clang-format, so clang-format 14.0 is the minimum.

Also, due to the nature of clang-format, there is a possibility that
newer versions of clang-format will produce different output.
2023-08-07 15:35:56 -05:00
Grant Meyerhoff
183c38bcb8 docs: update docs for reset command 2023-08-04 19:42:57 -05:00
Grant Meyerhoff
31bfb70dc8 usrpctl: add reset command 2023-08-04 19:42:57 -05:00
michael-west
8147ed4465 images: update FPGA images for E3xx, X3xx, N3xx
Signed-off-by: michael-west <michael.west@ettus.com>
2023-08-04 19:35:50 -05:00
Wade Fife
db7ef74148 fpga: docs: Clarify design tool requirements 2023-08-04 12:46:09 -05:00
Wade Fife
d76f273c05 fpga: docs: Add system memory recommendations 2023-08-04 12:46:09 -05:00
Grant Meyerhoff
a2a04e31a1 tools: run all tests for manifest update 2023-08-02 11:36:42 -05:00
Javier Valenzuela
f065d25313 images: bump x4xx fpga images 2023-08-02 11:36:42 -05:00
Grant Meyerhoff
fee5ada222 devtest: fix typo in error message 2023-08-02 09:48:30 -05:00
Mark Eid
5da42f3542 fpga: x400: Fix SPI trigger clock crossing 2023-07-31 17:35:44 -05:00
Javier Valenzuela
b4e14109d0 docs: update FPGA build docs 2023-07-31 16:15:16 -05:00
Matthew Crymble
f80898c9f3 ci: select docker image repo directly at container endpoint definitions
This fixes issues caused by e22a2a7395.
That commit tried to consolidate the selection of the endpoint based on branch name
in a single shared location.  But due to the order that azure pipelines evaluates
things, the endpoints were being authenticated before the stage variables
were evaluated.

From azure docs:
"Resources are authorized before a stage can start running,
so stage- and job-level variables aren't available. Pipeline-level
variables can be used, but only those variables explicitly included in the pipeline."
2023-07-28 15:13:44 -05:00
Aki Tomita
b70f546ffa mpm: Add revE support to zbx_update_cpld 2023-07-28 11:28:31 -05:00
Matthew Crymble
e22a2a7395 ci: select docker registry based on branch 2023-07-27 13:31:50 -05:00
Grant Meyerhoff
4e4cb12ed4 ci: fixup typo in x440 sdr-test0 template 2023-07-26 22:30:07 -05:00
Wade Fife
4d73b966de fpga: Fix RFNoC OOT Makefile inclusion 2023-07-26 15:13:50 -05:00
Grant Meyerhoff
8831a02d6c tools: add devtest rule for changeset_analyzer 2023-07-25 09:45:11 -05:00
Grant Meyerhoff
f4c7802e07 devtest: correct docstrings with example being run 2023-07-25 09:45:11 -05:00
Grant Meyerhoff
7d6de9d10a devtest: disable rx_samples_to_file_test for x440
disable test because of stream rate limitations for the 1GbE port
2023-07-25 09:45:11 -05:00
Martin Braun
1ad773a46f ci: Allow internal fileserver usage for MS installer builds 2023-07-24 14:59:04 -05:00
Javier Valenzuela
7ce1ed520d fpga: x440: fbx: clean up I2C triggers 2023-07-20 11:49:19 -05:00
SaarthakMohanNI
41c0ab4d95 host/python: Update last_gain at end of run_rx_cal loop 2023-07-18 17:03:16 -05:00
Joe
fbab1ef2ee host: improve DPDK frame_size error message 2023-07-18 17:02:07 -05:00
Joe
dade3c1ac7 host: fix & improve EAL args for DPDK v21.11 2023-07-18 17:02:07 -05:00
Luca Boccassi
54abe927da host: fix build with DPDK v22.11 LTS
Some defines were changed, and a header is no longer recursively included
so needs to be specified given its definitions are used directly.
2023-07-18 17:02:07 -05:00
Martin Braun
a5ee66ade9 lib: Fix time-cast for dboard_iface::sleep()
The previous cast would take the number of nanoseconds, cast them to an
integer, and then add that to the previous command time. Now, we cast
the nanoseconds duration to a number of seconds, represented as a double,
first.
2023-07-18 13:03:16 -07:00
Martin Braun
9ddbe93fcb ci: Add conditions for embedded builds, HW tests
- Embedded builds are no longer always triggered
- GNU Radio builds require Linux builds
- More HW tests (devtests, RF tests) require a valid condition for them
  to run
2023-07-18 14:47:14 -05:00
Martin Braun
d4d57f7980 ci: Auto-detect conditionals for pipeline stages
- Runs changeset_testlist.py on pull requests to see what changed
- This will conditionally compute a test list
- Tests are now conditionally executed
2023-07-14 13:38:44 -05:00
Martin Braun
3b5f89ee72 tools: Add changeset analyzer
This tool compares two git branches of UHD and produces a list of tests
required to verify the changeset. The intended use case is to be able to
verify branches that are being created for pull requests.

For example, say a pull requests is based on a branch that only modifies
files in host/lib/usrp/x300. Then it is only necessary to run hardware
tests on X300, running tests on other USRPs would be a waste of time.

This commit contains two files: The utility itself (a Python script),
and a rule file (a YAML file). The former uses the latter to map
a changeset to a list of tests.
2023-07-14 13:38:44 -05:00
Grant Meyerhoff
ac0f3014b6 devtest: gpio test updates 2023-07-13 15:01:55 -05:00
Martin Braun
781c1d50ee ci: Update CLA Assistant to v2.3.0 2023-07-13 10:25:19 -05:00
Martin Anderseck
69b9592438 docs: Update X4xx manual wrt. self-cal
The way how self-cal gets triggered and what can be done with it has
changed during the development of X440. This reflects these changes
and explains them.
2023-07-13 07:33:08 -05:00
Martin Anderseck
6604d20c3c SelfCal: Remove self-cal from boot and fpga update
This removes the ADC self-cal during X4xx bootup and when a new FPGA
bitfile was loaded because we now do this when the clocking
configuration was changed. This improves RF performance for X410 and
is required for the flexible sample rates of X440.
2023-07-13 07:33:08 -05:00
Martin Anderseck
bacfc70360 SelfCal: Enable parameters in self-cal executable
While the self-cal that is executed within a UHD session already had the
user-configurable parameters, this was not yet the case for this
stand-alone utility. This commit adds this.
2023-07-13 07:33:08 -05:00
David Raeman
ba6b8f867b cmake: Fix linking DPDK when installed at non-standard location
With DPDK 21.11 installed at a non-standard path, the UHD build process failed
to find its shared libraries (librte_*.so) while linking libuhd.so. The
-l flags were passed to the linker as bare filenames, but the -L flag was not
passed to specify the library search path (although that information was
provided to cmake by pkg-config). This patch uses the full path to DPDK
libraries at link time instead of bare filenames, which fixes this case.
2023-07-12 10:14:13 -07:00
Martin Braun
40dfa1655d lib: tests: Mark mock pop_host_tasks() as override
This avoids compiler warnings on recent compilers.
2023-07-12 09:43:23 -07:00
Martin Braun
4afc1d4ae2 lib: Add default virtual dtor to filter_node
This removes a compiler warning in recent clang.
2023-07-12 09:43:23 -07:00
Martin Braun
97c1eb9452 lib: fbx: Remove unused lambda captures
This produce warnings in more recent compilers.
2023-07-12 09:43:23 -07:00
Martin Braun
79247929b1 lib: max287x: Remove unused class attributes
These throw warnings in recent clang compilers.
2023-07-12 09:43:23 -07:00
Martin Braun
c0afac81bc docs: b200: Improve docs (auto MCR, GPIOs)
- Mention J400 and the ability to do GPIO on there
- Provide some examples on auto-MCR and its effects
- Add comments that changing MCR has ill effects on time synchronization
2023-07-12 09:41:28 -07:00
Martin Braun
efce8fcff9 fixup! mpm: Add LogRuntimeError class 2023-07-11 13:49:34 -05:00
Saarthak Mohan
cc36b4e35d examples: Add power controls to rx_ascii_art_dft.cpp 2023-07-11 11:46:08 -05:00