Commit graph

14 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
Moritz Fischer
5f10611c16 examples: tx_samples_c: Fix memory leak
Fix memory leak: 'buff' was never freed.

While we're at it replace the kludgy malloc(n*y*sizeof(float))
by calloc(sizeof(float), n*y).

Signed-off-by: Moritz Fischer <moritz.fischer@ettus.com>
2019-02-15 11:37:03 -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
sugandhagupta
51aa599d0c examples/c-api: Fix invalid free of device_args
One does not simply free() stack / automatic variables.

Please `man 3 strdup()`.

Signed-off-by: Sugandha Gupta <sugandha.gupta@ettus.com>
Signed-off-by: Moritz Fischer <moritz.fischer@ettus.com>
2017-06-29 19:33:45 -07:00
Andrej Rode
a96fdcfe27 examples: fix device_args parsing in tx_samples_c 2017-04-25 17:15:13 -07:00
Philip Balister
b33ff03050 Fix warning in tx_samples_c.c.
Function needs pointer to size_t type. I suspect using uint64_t could
lead to trouble on a 32 bit machine.

Signed-off-by: Philip Balister <philip@opensdr.com>
2016-10-13 17:34:34 -07:00
Martin Braun
f693349f12 Merge branch 'maint' 2016-06-17 14:35:17 -07:00
Nicholas Corgan
ec75303792 Fixed minor warnings
* Mismatched printf format strings
* Number truncation
* Unreferenced variables
2016-06-16 08:02:11 -07:00
Paul David
2bdc0e2e31 examples: added options for specifying number of samples to transmit 2016-04-04 16:57:59 -07:00
Nicholas Corgan
bc9dd05988 C API cleanup, feature additions
* Cleaned up usage of handles vs. handle pointers
* Store global string for last error thrown
* Removed uhd::device_addr_t handle, added std::vector<std::string> handle
2015-08-12 12:19:20 -07:00
Nicholas Corgan
f1ebf68829 C API: feature additions, bugfixes
* Wrapped uhd::device_addrs_t, added find functions for multi_usrp, multi_usrp_clock
* Replaced getopt with public domain implementation
* Minor bugfixes
2015-08-07 11:23:59 -07:00
Nicholas Corgan
30f87afcba uhd: C API wrapper
* multi_usrp, multi_usrp_clock, and associated classes accessible through C
* Added Doxygen documentation explaining structure and API
* Simple RX and TX streaming examples
* Unit tests for different parts of C interface and C++ error conversion
2015-08-06 10:42:23 -07:00