Commit graph

284 commits

Author SHA1 Message Date
michael-west
548e14cfd6 GPIO: Set CTRL register before OUT register in GPIO example. 2016-12-09 17:22:16 -08:00
Martin Braun
cc6087f452 fixup! Remove all boost:: namespace prefix for uint32_t, int32_t etc. (fixed-width types)
Now also removes the namespaces in examples/
2016-11-15 16:31:18 -08:00
Martin Braun
99c2730bc9 Remove all boost:: namespace prefix for uint32_t, int32_t etc. (fixed-width types)
- Also removes all references to boost/cstdint.hpp and replaces it with
  stdint.h (The 'correct' replacement would be <cstdint>, but not all of our
  compilers support that).
2016-11-08 08:02:22 -08:00
Philip Balister
11bdf9e8a5 Fix warning in rx_samples_c.c.
time_t is not guaranteed to be printable as in int type. Use
difftime to portably convert time_t to float and print result.

Signed-off-by: Philip Balister <philip@opensdr.com>
2016-10-13 17:34:40 -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
92cc4d83df examples: Fixed test_messages 2016-09-28 10:20:04 -07:00
Martin Braun
39888bb340 examples: Fixed check for setting time on PPS vs. now 2016-09-28 09:49:53 -07:00
Martin Braun
83912104a9 Merge branch 'UHD-3.9.LTS' into maint
This provides the GPS fixes.

Conflicts:
	host/CMakeLists.txt
	tools/debs/upload_debs.sh
2016-09-02 11:27:37 -07:00
michael-west
065065e90c Add example to synchronize USRPs to GPS time 2016-09-02 11:10:46 -07:00
Derek Kozel
15173a8b72 examples: Added TX and RX channels args in benchmark_rate 2016-08-29 12:47:38 -07:00
Martin Braun
62898fc131 examples: tx_waveforms was always checking lo_lock on channel 0, regardless of channel used 2016-08-11 09:59:24 -07:00
Martin Braun
0c454df028 Merge branch 'maint' 2016-08-03 16:49:58 -07:00
Martin Braun
c10c9d515d examples: test_dboard_coercion did not check the correct LO lock sensors for RX 2016-08-03 16:49:38 -07:00
Martin Braun
826af8bc5c examples: Remove default values for subdevs in benchmark_rate 2016-08-03 12:17:51 -07:00
Derek Kozel
ac93ba035d examples: Added tx and rx subdev arguments to benchmark_rate 2016-08-03 12:10:03 -07:00
michael-west
7dd34d09d9 examples: tx_bursts fixes
- Wait for ACKs for all channels
- Put EOB on last data packet instead of empty packet
- Exit with failure when send times out and SIGINT has been received
2016-08-02 17:35:48 -07:00
Nicolas Cuervo
b448bb331a cmake: Fix compatibility with new versioning scheme
- Fixes init_usrp
2016-08-01 18:39:54 -07:00
Martin Braun
b9c3688d05 examples: Fixed unconditional wait for SISO case in benchmark_rate 2016-07-22 18:40:39 -07:00
Martin Braun
8a8b90183b examples: Added late command counter to benchmark_rate 2016-07-22 11:45:17 -07:00
michael-west
4d88b79727 examples: Fix RX thread in benchmark_rate example so it exits when EOB is seen 2016-07-22 11:31:40 -07:00
Martin Braun
ef57ffcbbf Merge branch 'maint'
Conflicts:
	host/lib/usrp/b200/b200_impl.cpp
2016-06-23 09:58:20 -07:00
Derek Kozel
fb2cbe6e8d Added subdev argument to rx_samples_to_udp example 2016-06-22 18:22:29 -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
Martin Braun
f34e0beab1 Merge branch 'maint' 2016-05-19 17:43:48 -07:00
Paul David
1325cdd1fa examples: Increased the reference locking timeout in benchmark_rate 2016-05-17 10:15:29 -07:00
Paul David
2bdc0e2e31 examples: added options for specifying number of samples to transmit 2016-04-04 16:57:59 -07:00
Martin Braun
c3b01cb670 examples: Add timeouts to benchmark_rate 2016-03-21 14:07:42 -07:00
Martin Braun
523a17872c examples: Re-enabled better thread interruption in benchmark_rate
The previous version (using atomic variables) was fine, but didn't work
with all the Boost versions we currently support on the 3.9.X release
line.
This is a slightly less safe, but still sufficient example.
2016-03-21 08:39:45 -07:00
Martin Braun
4cfc809bd5 Revert "examples: Modified benchmark_rate so thread interrupts cannot cause problems"
This reverts commit 8930d853f3.
2016-03-21 08:39:45 -07:00
Martin Braun
0dfbf9771e examples: Modified benchmark_rate so thread interrupts cannot cause problems 2016-03-21 08:39:45 -07:00
Martin Braun
4b24235c80 examples: Re-enabled better thread interruption in benchmark_rate
The previous version (using atomic variables) was fine, but didn't work
with all the Boost versions we currently support on the 3.9.X release
line.
This is a slightly less safe, but still sufficient example.
2016-03-17 10:17:57 -07:00
Martin Braun
c1c336e43a Revert "examples: Modified benchmark_rate so thread interrupts cannot cause problems"
This reverts commit 8930d853f3.
2016-03-16 21:39:33 -07:00
Martin Braun
8930d853f3 examples: Modified benchmark_rate so thread interrupts cannot cause problems 2016-03-14 15:07:53 -07:00
Paul David
7b268bdb82 examples: TX/RX loopback stopping condition was reversed
No data was getting stored.
2016-03-03 16:13:20 -08:00
DaulPavid
a9de87e33d examples: TX/RX loopback could run forever if the exact number of samples isn't received 2016-03-03 12:37:18 -08:00
DaulPavid
35c6d74297 Corrected the UHD behavior in the event of a USB disconnect 2016-02-12 13:32:38 -08:00
Martin Braun
36c8e0f81a examples: Fixed error code variable in rx_samples_c 2015-11-17 09:17:02 -08:00
michael-west
0d290169f2 UHD: Add pps source option to tx_waveforms example 2015-09-01 13:33:16 -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
Nicholas Corgan
290b85a961 Fixed minor warnings 2015-07-24 10:38:15 -07:00
Martin Braun
7c6bc34f62 Merge branch 'maint'
Conflicts:
	fpga-src
	host/CMakeLists.txt
	host/cmake/Modules/UHDVersion.cmake
	host/lib/usrp/b200/b200_impl.hpp
	host/lib/usrp/e300/e300_fpga_defs.hpp
	host/lib/usrp/x300/x300_fw_common.h
2015-07-14 14:51:14 -07:00
Martin Braun
1c185f8478 examples: Improved tx_waveform multi-channel sync 2015-07-14 12:19:41 -07:00
Martin Braun
533548a681 Merge branch 'maint'
Conflicts:
	host/lib/usrp/common/ad9361_ctrl.hpp
	host/lib/usrp/common/ad9361_driver/ad9361_device.h
	host/lib/usrp/e300/e300_remote_codec_ctrl.hpp
2015-06-09 16:17:53 -07:00
Martin Braun
4d0dadb3cc examples: Updated init_usrp example on note about CMake flags 2015-06-09 15:08:21 -07:00
Nicholas Corgan
715f4dd313 Fixed master-specific warnings
* MinGW: unused parameter warning, MSVC-specific pragma
* MSVC: bool narrowing
2015-03-27 13:36:18 -07:00
Martin Braun
88ffeb35da Merge branch 'maint' 2015-03-27 13:35:27 -07:00
Nicholas Corgan
1200721b69 Warning fixes
* CMake now not applying C++ flags to C files
* GCC 4.4: anti-aliasing rules
* MSVC: narrowing, differences in subclass function parameters
* Clang: uninitialized variables
2015-03-27 09:35:29 -07:00