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
305d0e79e2
examples: Fix some minor compiler warnings
...
All warnings reported by MSVC. Mostly related to narrowing conversions.
2018-02-19 17:01:40 -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
4f948e2c8b
Move all license headers to SPDX format.
2017-12-22 10:45:51 -08:00
Andrej Rode
c33928d2bb
utils: add set_thread_name API call, move thread_priority to thread
2017-06-29 13:43:05 -07:00
Martin Braun
da26a3e34e
Merge branch 'maint'
2017-03-01 16:39:08 -08:00
Martin Braun
e2e0aab185
examples: Added some more error strings to test_messages
2017-02-27 15:04:29 -08: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
Paul David
8b6680bc52
examples: Fix and cleanup test messages
2017-02-07 18:09:24 -08:00
Martin Braun
92cc4d83df
examples: Fixed test_messages
2016-09-28 10:20:04 -07:00
Ben Hilburn
9e47ad607b
Squashed merge of Coverity fixes.
2013-11-27 12:11:23 -08:00
Josh Blum
c464a63e87
uhd: added new calls to streamer object + support work
...
* The transmit streamer gives access to the async msg queue.
* The receive streamer gives access to the issue stream cmd.
* Supporting usrp implementation files updated.
* Example applications updated to use this API.
2013-07-15 15:44:42 -07: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
1151000340
uhd: various tweaks for compiler warns and valgrind
2012-02-09 17:59:48 -08:00
Josh Blum
fac15db5d7
uhd: renamed some of the stream types and functions
2011-11-03 20:37:11 -07:00
Josh Blum
a629bbe7e3
uhd: updated examples to use new streamer interface
2011-11-03 20:37:10 -07:00
Josh Blum
34265334d1
uhd: added inline message testing to the messages example
...
Renamed the example to test_messages (not just async).
Fixed bug in super recv packet handler related to messages.
Basically, the sequence number for messages should be ignored.
Fixed some quirks with usrp1 soft time control to get it work as well.
2011-07-03 17:40:13 -07:00