Commit graph

118 commits

Author SHA1 Message Date
Andrej Rode
94a043ab5b tests: fix coverity reports 2017-01-12 15:15:37 -08:00
Martin Braun
d5ba9fab6a tests: Added bitbang test, added to x3x0 devtest 2016-12-09 19:15:27 -08:00
Andrej Rode
ae9370d5b3 devtest: flush stdout after print statements 2016-12-01 12:44:41 -08:00
Andrej Rode
7fc01d5fe3 devtest: dont check number of samples in benchmark rate test and accept
10 underruns in SISO
2016-12-01 12:44:41 -08:00
Andrej Rode
b68412521f devtest: test_base add wait time between uhd_usrp_probe calls 2016-11-09 17:54:52 -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
Martin Braun
bd8409cc76 tests: Updated RFNoC tests after some API changes 2016-10-19 13:55:10 -07:00
Derek Kozel
9af57b2e2c Fixed floating point rounding error in converter tests
Integer rounding was producing out of range values and causing tests to
fail
2016-09-26 17:07:21 -07:00
Martin Braun
a1d6f4f363 nocscript: Removed compiler warning 2016-08-12 18:02:17 -07:00
Martin Braun
3bf4b000f7 Merging RFNoC support for X310 2016-08-09 12:42:52 -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
6b7b88102a devtest: Fix $PATH-setting code
PATH was only set for the examples, but not for the initial
call to uhd_find_devices.

This reverts commit b7c296f583, which
tried to fix this but did so badly, and also amends it with the correct
fix.
2016-05-09 10:36:36 -07:00
Martin Braun
b7c296f583 devtest: Run uhd_find_devices from current build 2016-04-22 18:14:44 -07:00
Martin Braun
4a33820cbb Merge branch 'maint'
Conflicts:
	fpga-src
	host/cmake/Modules/UHDVersion.cmake
	host/lib/usrp/b200/b200_impl.cpp
2016-04-22 12:57:39 -07:00
Martin Braun
aae93861a0 math: Fixed floating point comparison for custom delta
Reviewed-By: Derek Kozel <derek.kozel@ettus.com>
2016-04-22 11:14:37 -07:00
Martin Braun
da00dad1c9 devtest: Fixed case where B200 test could fail due to bad params 2016-03-25 14:50:27 -07:00
Martin Braun
1381437eae devtest: Backed out fast B2X0 rate tests so we can use the same test on USB2 2016-03-25 13:07:56 -07:00
Nicholas Corgan
f50f46b817 devtest: fixed check for specific product 2016-03-25 12:36:42 -07:00
Ashish Chaudhari
9d6c0b7f87 usrp: Added fe_connection type and unit test
- Wraps a sampling mode and IF frequency
- Built-in parser to deduce swap,invert,mode bits from string connection
2016-03-21 17:46:12 -07:00
Martin Braun
30c12d86a4 tests: devtests now check for timeouts and the sample counts 2016-03-21 14:07:42 -07:00
Ashish Chaudhari
1c2f56bbc1 Merge branch 'maint'
Conflicts:
	host/lib/usrp/cores/gpio_core_200.cpp
	host/lib/usrp/dboard/db_ubx.cpp
2016-02-18 17:40:47 -08:00
DaulPavid
35c6d74297 Corrected the UHD behavior in the event of a USB disconnect 2016-02-12 13:32:38 -08:00
Ashish Chaudhari
7c7622c1fe uhd: Added expert dependency tracking infrastructure
- Code location uhd/lib/experts
- expert_nodes.hpp contains all node definitions: data and worker
- expert_container.hpp contains the memory manager and resolver for expert nodes
- expert_factory contains the initializer and modifier for expert_container
2016-02-12 00:21:15 -08:00
Ashish Chaudhari
834acb8b6c prop_tree: Added advanced coercion capability to property
- Added auto and manual coerce modes
- Added set_coerced API for manual coercion
- Added detailed doxy comments describing behavior of property class
2016-02-11 14:36:20 -08:00
Ashish Chaudhari
27a08ccddc prop_tree: Multiple API enhancements to uhd::property
- Added desired and coerced values and accessors to property
- Added support to register desired subscribers
- set APIs don't reallocate storage for a property value
- Renamed callback method registration APIs
- Registering 2 coercers or publishers for a property will throw
- Registering a coercer and a publisher for the same property will throw
2016-02-11 14:36:20 -08:00
Martin Braun
88b0baeaf6 tests: More devtests, works on E3XX now
- devtest now gets installed
- uhd_usrp_probe test
- Added make test_e3xx
- Minor fixes to previous devtests
2015-11-11 10:37:26 -08:00
Martin Braun
90b88a27d2 tests: Added first batch of device tests
- Currently supported: B2xx, X3x0
- Runs some simple examples
2015-10-07 15:06:42 -07:00
Martin Braun
ac96c8c76e tests: Initialize test value to avoid bit width related issues 2015-09-08 09:24:15 -07:00
Martin Braun
1e9ac85fed tests: Initialize test value to avoid bit width related issues 2015-09-02 16:02:33 -07:00
Martin Braun
71f6902d33 convert: Added s8, s16 types and did some refactoring 2015-09-01 16:00:31 -07:00
Nicholas Corgan
5c9fbf9d60 Remove CMake 3.0+ warnings 2015-08-13 14:39:06 -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
Martin Braun
bd293b70f4 convert: Added converters for raw strings
- u8: Converts arbitrary-length strings from and to item32
- item32->item32 memcpy non-conversion
2015-07-31 12:26:44 -07:00
Nicholas Corgan
86924e9cca cmake: MinGW improvements
* Improved toolchan file, accounts for different versions
* Don't force static runtime linking (was causing test errors)
* Include MinGW runtime in packaging
2015-07-23 14:37:16 -07:00
Michael Dickens
1942e608d8 tests: fix use of 'uint32_t' to be in the correct namespace 'boost::'. 2015-04-08 13:11:23 -04: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
Martin Braun
2e594ae877 Merge branch 'maint'
Conflicts:
	host/include/uhd/transport/vrt_if_packet.hpp
2015-03-11 17:05:10 -07:00
Martin Braun
cc7d37f114 uhd: Fixed several type-cast related warnings for naggy compilers 2015-03-11 16:58:23 -07:00
Michael Dickens
a7049e4ff7 uhd: Fixed multiple compiler warnings
- Use ULL and LL etc. so compiler doesn't need to decide constant's types
- define the empty 'while' loop to include {} to make older compilers happy
- Use explicit type names for BOOST_CHECK_EQUAL
2015-03-11 15:33:17 -07:00
Martin Braun
befbaf97d0 uhd: Added an update() method for dicts
Very similar to Python's dict.update().
2015-01-27 09:58:02 +01:00
Nicholas Corgan
3f9ef46bc5 Added support for MinGW cross-compile
* Added CMake toolchain file, compatible with different versions
* No dependency on MinGW runtime, all statically linked
* Misc coding tweaks to allow MinGW to compile
2015-01-13 09:46:41 +01:00
Martin Braun
0da9251e68 transport: Made CHDR-related routines separate from VRT
Our VRT routines have the option to switch, on the fly, between
VRLP and CHDR. This adds new CHDR-specific (un-)packers, which
can only work with CHDR.
2014-12-03 20:44:59 +01:00
Martin Braun
27aa985f45 math: Added a portable log2() 2014-11-20 23:28:37 +01:00
Martin Braun
91347ea2cb uhd: Added sid_t
This is a data type to represent SIDs (stream IDs).
It includes setters and getters for all components of the
SID, converters to and from string and uint32 as well
as C++ streams.
2014-10-28 19:42:22 +01:00
Ben Hilburn
800f58430f math: Added a new uhd::math namespace + float comparison routines
* Float comparison is applied to tuning logic in DSP cores.
* Properly using INT_MAX/MIN constants, defined in utils/math.hpp
2014-10-07 14:56:47 +02:00