Commit graph

34 commits

Author SHA1 Message Date
Ciro Nishiguchi
60a70f7142 examples: remove thread priority elevation
Remove UHD call to elevate thread priority to realtime. Setting all
threads to the same realtime priority can cause the threads to not share
access to the network interface fairly, which adversely affects
operation of the worker threads in UHD.
2019-10-22 16:18:46 -07:00
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
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
Ben Hilburn
178ac3f1c9 Merging USRP X300 and X310 support!! 2014-02-04 11:04:07 -08:00
Nicholas Corgan
6cdc9cdd5b 120 MHz daughterboard support, Integer-N tuning, ADF435x code consolidation
* Added support for new CBX-120, SBX-120, and WBX-120 daughterboards
* Added implementation of Integer-N tuning for all CBX, SBX, and WBX daughterboards
* Added --int-n option to examples to show how to use Integer-N tuning API
* Removed duplicate ADF4350/ADF4351 code and moved it to common/adf435x_common.cpp
2014-01-24 07:17:42 -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
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
44d397dd61 uhd: tweak for tx_timed_samples to pad async msg timeout 2011-08-30 09:37:47 -07:00
Josh Blum
8a4ed30b9a uhd: just send a mini EOB packet for tx timed samplesa 2011-06-03 12:44:39 -07:00
Nick Foster
cf780ec405 tx_timed_samples: fix so EOB isn't set on every pkt 2011-05-26 14:00:45 -07:00
Josh Blum
0f70531675 usrp2: turn on ups_per_sec to avoid timeout issues on low sample rates 2011-05-20 10:49:52 -07:00
Josh Blum
f7687f06cf uhd: created rx_multi_samples for multi-channel example 2011-03-11 20:30:04 -08:00
Josh Blum
cadafd4c3e uhd: cleanup/tweaks on timed samples examples 2011-03-11 16:22:20 -08:00
Josh Blum
67bba00825 uhd: replaced sdev and single usrp in examples with usrp and multi usrp 2011-01-31 18:01:27 -08:00
Josh Blum
81dc70a621 examples: init metadata with time before loop begins 2011-01-17 14:02:42 -08:00
Josh Blum
261bb80d73 uhd: update copyright dates on host code 2011-01-13 16:22:07 -08:00
Josh Blum
4f28afe247 uhd: use double for seconds in example apps so we can do partial seconds 2011-01-12 14:03:25 -08:00
Josh Blum
7b0b2924d5 uhd: removed SOB always from tx examples,
use the multi usrp set unknown pps in the test app
2010-12-30 17:26:58 -08:00
Josh Blum
dc9f22c9a7 uhd: added rx samples to udp example, cleaned up other examples, added gain options 2010-10-27 19:18:26 -07:00
Josh Blum
c2dc0fe98d timeout: proper way to check for timeout in full buff mode 2010-10-04 15:41:34 -07:00
Josh Blum
9cea134294 uhd: modified tx timed samples to deal with timeout 2010-10-04 10:06:17 -07:00
Josh Blum
1625bcb413 uhd: added single usrp interface, added usrp1 properties to prop names 2010-09-20 16:59:44 -07:00
Josh Blum
79c513d0b2 uhd: added dilv option for timed examples, also made tx timed example fragment 2010-07-07 13:06:02 -07:00
Josh Blum
11f2aa1ea0 uhd: replaced old send and recv with inline wrappers that take a single buffer and look more like the vectored send/recv 2010-07-05 13:49:00 -07:00
Josh Blum
6469d2419f uhd: filling in mimo usrp implementation, renamed get_name to get_pp_string for simple and mimo usrp 2010-07-05 13:45:16 -07:00
Josh Blum
51cb8da583 uhd: reworked time_spec_t to be more flexible: arithmetic, comparison operators...
Replaced nsecs with fractional seconds in units of seconds.
Replaced nsecs and secs members with public function members.
time_spec_t has a more diverse set of constructors and methods.
It can handle the cases where frac secs are greater than 1 second.
2010-06-24 20:29:11 -07:00
Josh Blum
339aa3ccd4 uhd: working windows implementation of thread priority setting, added called to example apps 2010-06-16 19:18:06 -07:00
Josh Blum
bea1c58249 tweaks to remove warning is msvc 2010-05-18 18:03:27 -07:00
Josh Blum
17c494b79a Added tx timed samples example.
Added called to device to get max samples per packet.
Removed device props that gave max samples per packet.
2010-05-18 14:26:43 -07:00