Commit graph

110 commits

Author SHA1 Message Date
Martin Braun
876d4150aa uhd: Apply clang-format against all .cpp and .hpp files in host/
Note: template_lvbitx.{cpp,hpp} need to be excluded from the list of
files that clang-format gets applied against.
2020-03-03 08:51:32 -06:00
Martin Braun
d3a16b7022 uhd: Replace all occurrences of boost::bind with std::bind
Note: Replacing everything with a lambda would be even better, but that
can't be easily scripted so we'll do this as a first step to reduce the
Boost footprint.

This also removes occurences of #include <boost/bind.hpp>, and makes
sure all usages of std::bind have an #include <functional>. clang-format
wasn't always applied to minimize the changeset in this commit, however,
it was applied to the blocks of #includes.

Due to conflicts with other Boost libraries, the placeholders _1, _2,
etc. could not be directly used, but had to be explicitly called out
(as std::placeholders::_1, etc.). This makes the use of std::bind even
uglier, which serves as another reminder that using std::bind (and even
more so, boost::bind) should be avoided.

nirio/rpc/rpc_client.cpp still contains a reference to boost::bind. It
was not possible to remove it by simply doing a search and replace, so
it will be removed in a separate commit.
2019-11-26 12:21:32 -08:00
Martin Braun
0303f1ed55 lib: Purge all references to boost::this_thread::sleep()
Replace with std::this_thread::sleep_for().
2018-04-30 17:10:26 -07: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
83dde40090 uhd: Changed mboard_eeprom_t interface, refactored MB EEPROM code
- uhd::usrp::mboard_eeprom_t is now simply a map. Its commit() method
  has no utility being a public API call, because the user never gets
  access to the appropriate I2C object (Minor API breakage)
- The central mboard_eeprom.cpp file was broken up and put into many
  smaller compilation units in every device's implementation folder.
- Renamed some of the constants (e.g. B000_* -> USRP1_*, N100_* ->
  N200_*)
- Removed the N000_* EEPROM code, because, well, you know, there's no
  such device
2017-09-29 10:50:56 -07:00
Andrej Rode
21aad77c9c utils: introduce new logging API and remove msg API 2017-02-20 17:13:15 -08: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
33c0b32db1 lib: Removed more superfluous variables 2016-11-28 12:17:12 -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
Nicholas Corgan
0595900ecc Added uhd::image_loader class and uhd_image_loader utility
* Single class for loading firmware/FPGA images onto devices instead of multiple utilities
* Loading functions are registered for each device, corresponding to their --args="type=foo" name
* Deprecation warnings added to all product-specific image loading utilities
2015-07-15 09:32:18 -07:00
michael-west
ccf1d5c5e5 uhd: Add ability to get and set command time through dboard_iface.
This creates a wb_iface child class called timed_wb_iface, which
adds support for timed commands.
2015-04-03 13:43:23 -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
Nicholas Corgan
8ec775e936 usrp2: fixed image compatibility error message
* Point to usrp2_card_burner_gui.py instead of usrp2_card_burner.py
2015-02-16 11:17:34 +01:00
Ben Hilburn
75d519706b Merging new UHD_IMAGES_DIR utilities and bug fixes.
Also includes NI-USRP Windows Registry Key fixes.
2015-01-27 16:07:43 -08:00
Nicholas Corgan
41d217d0a7 usrp2: fixed usrp2_card_burner.py and usrp_n2xx_simple_net_burner paths in incompatibility error messages 2014-05-06 07:04:08 -07:00
Ben Hilburn
178ac3f1c9 Merging USRP X300 and X310 support!! 2014-02-04 11:04:07 -08:00
Ben Hilburn
9e47ad607b Squashed merge of Coverity fixes. 2013-11-27 12:11:23 -08:00
Josh Blum
0aeac60394 uhd: allow for 16 bit i2c and eeprom addrs 2013-07-24 17:46:04 -07:00
Nicholas Corgan
01d9025977 utils: USRP N2XX Simple Net Burner
* More automated C++ implementation of usrp_n2xx_net_burner.py
* By default, installs images from standard image install directories
2012-10-10 13:29:12 -07:00
Nicholas Corgan
23f8854b39 lib: FW/FPGA compatibility error prompts user to use regular card/net burner instead of gui 2012-07-06 10:25:35 -07:00
Josh Blum
3dd244bb9f usrp2: created fw peek/poke functions 2012-06-18 15:53:18 -07:00
Nicholas Corgan
e7df63844f utils: UHD Image Downloader - downloads firmware/FPGA images compatible with the current host code and places them in the images directory 2012-06-07 15:05:41 -07:00
Josh Blum
c94963a436 usrp: mboard eeprom map use string as key 2012-05-14 11:59:20 -07:00
Josh Blum
141c8ebae4 usrp2: burner print, escapes and quotes for cross-platform 2012-05-11 20:56:23 -07:00
Josh Blum
4f19f3f4ec usrp2: print helpful message with burner command 2012-05-11 17:28:10 -07:00
Nicholas Corgan
a6ec6e2544 mboard id's are now more concise (codenames are separated, for example), and dboard subdev names are more descriptive (RFX RX is now RFX1200 RX, etc) 2012-04-20 14:21:17 -07:00
Josh Blum
fedad06362 usrp2: device locking tweaks
1) use bottom bit for force lock condition,
that way we never check the time after proper shutdown

2) dont allow lock condition under fpga compat mismatch
2012-02-29 09:31:31 -08:00
Josh Blum
2e85c4a2f1 usrp2: some tweaks to the device locking logic 2012-02-20 15:33:42 -08:00
Josh Blum
b1f34b4fd0 usrp2: added retry logic to control packets 2012-02-20 10:51:36 -08:00
Josh Blum
1151000340 uhd: various tweaks for compiler warns and valgrind 2012-02-09 17:59:48 -08:00
Josh Blum
5eec31fab4 dsp rework: implement 64 bit ticks, no seconds 2012-02-06 16:40:42 -08:00
Josh Blum
7749b0f065 uhd: useful tweaks from user 2011-11-08 09:32:40 -08:00
Jason Abele
ac5d3a02a0 Fix for unitialized eeprom 2011-10-12 10:16:58 -07:00
Josh Blum
a2c19e5a54 usrp: added product and revision fields to eeprom 2011-10-10 17:41:50 -07:00
Josh Blum
1b577977ac usrp2: give users a warning for gpsdo support + fw update 2011-09-28 17:57:57 -07:00
Josh Blum
bb777ac71e usrp2: allow backwards compat with previous fw
You only need the newer fw for uart streaming.
This is needed only if you use an internal gpsdo.
2011-09-28 16:35:19 -07:00
Josh Blum
25494489bf usrp2: uart/udp work in host and fw, working 2011-09-28 10:32:05 -07:00
Josh Blum
92735f83fc usrp2: made iface deconstructor safe (unlock can throw) 2011-08-31 15:51:23 -07:00
Josh Blum
0e6441c3e0 usrp2: fix unintended change in last commit 2011-07-26 10:32:45 -07:00
Josh Blum
c0764b44e3 uhd: exit task on the catch-all exceptions, and dont print anything 2011-07-25 18:22:18 -07:00
Josh Blum
96bd5d54d6 usrp2: workaround for older boost thread sleep 2011-07-20 17:07:03 -07:00
Josh Blum
0e788f7751 usrp2: added fw minor and moved ICMP dest error handling to txrx app 2011-07-18 11:09:10 -07:00
Josh Blum
7e1b2a0e3c uhd: added tasks to simplify thread spawning use cases 2011-07-13 17:25:40 -07:00
Josh Blum
11539ef6f6 usrp2: moved impl back into usrp subdir 2011-06-29 14:00:22 -07:00
Josh Blum
25d6e39c6a usrp2: init the usrp2_ctrl_data_t to make valgrind happy 2011-06-24 16:20:33 -07:00
Nick Foster
fb85b0c9eb N210: stop sending 1 char at a time to the GPSDO 2011-06-14 17:23:08 -07:00
Josh Blum
9f8a2d0369 usrp2: catch exceptions thrown in locker loop (like the user unplugs device) 2011-06-01 17:46:59 -07:00
Nick Foster
21856ee1ba N210: changes for rev 4 support 2011-05-18 20:19:03 -07:00
Josh Blum
9065043544 usrp2: moved register map into #defines, entries for new dsp frontend
also fixes irq rb
2011-05-17 15:12:02 -07:00