Brent Stapleton
967be2a4e8
uhd: mpm: apply clang-format to all files
...
Applying formatting changes to all .cpp and .hpp files in the following
directories:
```
find host/examples/ -iname *.hpp -o -iname *.cpp | \
xargs clang-format -i -style=file
find host/tests/ -iname *.hpp -o -iname *.cpp | \
xargs clang-format -i -style=file
find host/lib/usrp/dboard/neon/ -iname *.hpp -o -iname *.cpp | \
xargs clang-format -i -style=file
find host/lib/usrp/dboard/magnesium/ -iname *.hpp -o -iname *.cpp | \
xargs clang-format -i -style=file
find host/lib/usrp/device3/ -iname *.hpp -o -iname *.cpp | \
xargs clang-format -i -style=file
find host/lib/usrp/mpmd/ -iname *.hpp -o -iname *.cpp | \
xargs clang-format -i -style=file
find host/lib/usrp/x300/ -iname *.hpp -o -iname *.cpp | \
xargs clang-format -i -style=file
find host/utils/ -iname *.hpp -o -iname *.cpp | \
xargs clang-format -i -style=file
find mpm/ -iname *.hpp -o -iname *.cpp | \
xargs clang-format -i -style=file
```
Also formatted host/include/, except Cpp03 was used as a the language
standard instead of Cpp11.
```
sed -i 's/ Cpp11/ Cpp03/g' .clang-format
find host/include/ -iname *.hpp -o -iname *.cpp | \
xargs clang-format -i -style=file
```
Formatting style was designated by the .clang-format file.
2019-01-16 11:40:23 -08:00
Brent Stapleton
601e0ed87b
examples: utils: skip formatting program options
...
Turning off clang formatting around the program option declarations.
clang-format makes them looks bad an unreadable because it thinks the
options are function calls or something.
2019-01-16 11:40:23 -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
be0df323ca
utils: Use find_all in uhd_find_devices
...
This enables finding all N310 devices, even if they're not available
Reviewed-by: Brent Stapleton <brent.stapleton@ettus.com>
2018-02-07 15:46:43 -08:00
Martin Braun
4f948e2c8b
Move all license headers to SPDX format.
2017-12-22 10:45:51 -08:00
Martin Braun
47cdd6319c
uhd: Replaced many lexical_cast with appropriate C++11 equivalents
2017-06-29 13:40:07 -07:00
Andrej Rode
26cc20847c
uhd: replace BOOST_FOREACH with C++11 range-based for loop
...
Note: This is the first commit that uses for-range, and range-based
for-loops are now usable for UHD development.
2017-02-10 16:44:33 -08:00
Andrej Rode
9fe731cc37
utils: uhd_find_devices display one device for each unique serial found
...
Note: This also is the first precedent for the usage of the 'auto' keyword in UHD.
Commits past this one will also be able to use 'auto'.
Reviewed-By: Martin Braun <martin.braun@ettus.com>
2016-11-22 18:12:07 -08:00
Moritz Fischer
171e46cebe
examples & utils: return EXIT_FAILURE and EXIT_SUCCESS respectively
...
instead of 0 and 1.
2012-10-26 14:00:29 -07:00
Josh Blum
4d5df2376b
Expanded the dboard id API to create dboard id types from strings and ints.
...
And created utility functions to go between representations.
Created to_pp_string for pretty print strings for dboard ids and device addrs.
Minor changes to the various classes that call these utilities.
2010-05-03 01:20:11 -07:00
Josh Blum
04dae4bf6b
setting size of buffers from device args
2010-04-27 15:20:53 -07:00
Josh Blum
eae0bec99b
Created args string contructor for device address.
...
Using the args string for the find devices app.
Added documentation to simple usrp.
2010-04-20 12:05:33 -07:00
Josh Blum
91ef18021c
moved props into usrp and multiple hpp files
2010-04-01 15:08:52 -07:00
Josh Blum
281307833c
use find to discover devices
2010-03-30 15:11:23 -07:00