Commit graph

44 commits

Author SHA1 Message Date
michael-west
8c6becc521 utils: Add check for gdb_eeprom before accessing
Signed-off-by: michael-west <michael.west@ettus.com>
2019-01-29 09:19:36 -08: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
d04b6e3a62 mpm: uhd: RPC server reports MPM version, uhd_usrp_probe reads it 2018-03-02 13:48:14 -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
Martin Braun
6fc6e7c1e0 utils: uhd_usrp_probe is yet more forgiving 2017-05-04 13:24:22 -07:00
Martin Braun
c88be9542d utils: Updated uhd_usrp_probe to be more lenient with missing properties 2017-05-03 15:58:26 -07:00
Martin Braun
60cd1f601e utils: Made EEPROM readout optional in uhd_usrp_probe 2017-04-13 16:34:43 -07: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
Martin Braun
0e7c61ec68 utils: Enable printing of FPGA hash in uhd_usrp_probe 2017-02-10 16:41:25 -08:00
Martin Braun
96d16901e2 utils: uhd_usrp_probe can query vector<string> 2016-09-23 12:00:18 -07:00
Martin Braun
3bf4b000f7 Merging RFNoC support for X310 2016-08-09 12:42:52 -07:00
Derek Kozel
031839052b utils: Added querying a sensor to uhd_usrp_probe 2016-08-01 18:40:41 -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
ab8d81bc33 octoclock: uhd_usrp_probe works for clocks now 2016-06-15 09:37:36 -07:00
Marcus Müller
73d42182be utils: added integer, range and double property tree accessors
This amends uhd_usrp_probe's ability to query the property tree.
2015-04-21 11:56:50 -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
Marcus Müller
f06509c47d uhd: uhd_usrp_probe: added bandwidth ranges to RX output, if available 2015-02-18 16:38:12 +01:00
Ben Hilburn
c8454c9f6a Rectifying a great embarassement in UHD. %s/Mhz/MHz. 2014-10-07 13:58:05 +02:00
Nicholas Corgan
a6e18604be OctoClock firmware upgrade, added host driver
* OctoClock can communicate with UHD over Ethernet
* Can read NMEA strings from GPSDO and send to host
* Added multi_usrp_clock class for clock devices
* uhd::device can now filter to return only USRP devices or clock devices
* New OctoClock bootloader can accept firmware download over Ethernet
* Added octoclock_burn_eeprom,octoclock_firmware_burner utilities
* Added test_clock_synch example to show clock API
2014-07-23 07:37:32 -07:00
Martin Braun
f7ff585ef3 utils: uhd_usrp_probe gets argument --init-only
This will run the tool without the output (unless --tree is provided).
Using --init-only, uhd_usrp_probe can be used to simply test a device
in more detail than doing a uhd_find_device, but the output of the
device initalization is not scrolled by because of the device info
output.
2014-07-11 13:05:24 +02:00
Josh Blum
67cbce5891 uhd: conditionalize the eeprom check 2013-07-15 15:47:52 -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
a0ad50f925 uhd: added some more prints to the probe 2012-06-08 11:46:24 -07:00
Josh Blum
8315ab86b1 uhd: added readback of version and arbitrary string property to probe app 2011-08-17 10:30:35 -07:00
Josh Blum
da40a1aebc uhd: replaced boost filesystem path with fs_path in property tree 2011-07-22 13:59:47 -07:00
Josh Blum
9851de0713 uhd: add get_tree call directly to the device
Does away with the need for wax cast to get the tree.
You can still do this but it will eventually be removed.
There was some compiler issue on ubuntu 10.04 with any cast and a shared ptr to property tree.
2011-07-20 14:13:37 -07:00
Josh Blum
4bcab9c56a usrp: renamed ref_source to clock_source (terminology) 2011-07-02 09:32:00 -07:00
Josh Blum
adbe1a0efe uhd: loopback working on usrp2 2011-06-29 10:54:28 -07:00
Josh Blum
ebd2ecc6ff uhd: work getting multi-usrp working 2011-06-28 19:10:55 -07:00
Josh Blum
8308fb0eef usrp: got probe working w/ the new property tree 2011-06-28 16:05:08 -07:00
Josh Blum
3a61875156 usrp2: restored discovery and most of io_impl 2011-06-27 23:05:53 -07:00
Josh Blum
7450a6583f usrp: support for grand daughter board eeprom 2011-04-26 14:15:16 -07:00
Josh Blum
261bb80d73 uhd: update copyright dates on host code 2011-01-13 16:22:07 -08:00
Josh Blum
771b5cebda uhd: integrated boost split or tokenizer into source files, remove string split from algorithms header 2011-01-06 15:38:56 -08:00
Josh Blum
08dfff3798 uhd: created a meta range that is a range of ranges for gains and freqs
created a templated range that that holds a start, stop, and step

created a meta-range template that is a vector of ranges
meta-range can calculate the overall start, stop, step
or be indexed to get at components

replaced instances of range.min, max, step with the functions
start() stop() and step()

the xcvr frequency range is now expressed in as two ranges
(have to fix its clip function though)
2010-11-10 19:29:06 -08:00
Josh Blum
9dff7952f6 usrp: print eeprom key/value pairs in the probe app, fixed mac addr size 2010-11-04 21:25:25 -07:00
Josh Blum
805d4a0cff uhd: made split string utility function 2010-08-12 10:08:17 -07:00
Josh Blum
d769ff8cc3 usrp: removed gain handler code (replaced by gain group) 2010-07-27 15:45:49 -07:00
Josh Blum
c2b97490b7 usrp2: added codec impl for codec properties to usrp2 2010-07-27 15:45:49 -07:00
Josh Blum
9a9ca6dfad uhd: work on tune logic, and subdev connection logic 2010-07-16 16:51:30 -07:00
Josh Blum
2a3d0e653e usrp: removed spectrum inverted property from subdev code and tune helper (it wasnt used) 2010-07-16 16:51:30 -07:00
Josh Blum
ad95e45ab2 created uhd usrp probe 2010-06-09 18:30:10 -07:00