aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib/usrp/usrp2/usrp2_fifo_ctrl.cpp
Commit message (Collapse)AuthorAgeFilesLines
* uhd: Replace Boost mutexes and locks with standard optionsMartin Braun2021-10-191-11/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is a very mechanical task that could almost have been done with sed. Boost versions of mutexes and locks were removed, and replaced with std:: versions. The replacement tables are as follows: == Mutexes == - boost::mutex -> std::mutex - boost::recursive_mutex -> std::recursive_mutex Mutexes behave identically between Boost and std:: and have the same API. == Locks == C++11 has only two types of lock that we use/need in UHD: - std::lock_guard: Identical to boost::lock_guard - std::unique_lock: Identical to boost::unique_lock Boost also has boost::mutex::scoped_lock, which is a typedef for boost::unique_lock<>. However, we often have used scoped_lock where we meant to use lock_guard<>. The name is a bit misleading, "scoped lock" sounding a bit like an RAII mechanism. Therefore, some previous boost::mutex::scoped_lock are now std::lock_guard<>. std::unique_lock is required when doing more than RAII locking (i.e., unlocking, relocking, usage with condition variables, etc.). == Condition Variables == Condition variables were out of the scope of this lock/mutex change, but in UHD, we inconsistently use boost::condition vs. boost::condition_variable. The former is a templated version of the latter, and thus works fine with std::mutex'es. Therefore, some boost::condition_variable where changed to boost::condition. All locks and mutexes use `#include <mutex>`. The corresponding Boost includes were removed. In some cases, this exposed issues with implicit Boost includes elsewhere. The missing explicit includes were added.
* host: Update code base using clang-tidyMartin Braun2021-03-041-9/+9
| | | | | | | | | The checks from the new clang-tidy file are applied to the source tree using: $ find . -name "*.cpp" | sort -u | xargs \ --max-procs 8 --max-args 1 clang-tidy --format-style=file \ --fix -p /path/to/compile_commands.json
* uhd: Apply clang-format against all .cpp and .hpp files in host/Martin Braun2020-03-031-85/+96
| | | | | Note: template_lvbitx.{cpp,hpp} need to be excluded from the list of files that clang-format gets applied against.
* uhd: Update license headersMartin Braun2018-02-191-1/+2
| | | | | | | All copyright is now attributed to "Ettus Research, a National Instruments company". SPDX headers were also updated to latest version 3.0.
* Move all license headers to SPDX format.Martin Braun2017-12-221-12/+1
|
* utils: introduce new logging API and remove msg APIAndrej Rode2017-02-201-1/+1
|
* Remove all boost:: namespace prefix for uint32_t, int32_t etc. (fixed-width ↵Martin Braun2016-11-081-24/+24
| | | | | | | | 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).
* Increase command FIFO depth of N2x0 and X3x0 to 64.michael-west2015-04-101-1/+1
|
* uhd: Add ability to get and set command time through dboard_iface.michael-west2015-04-031-0/+6
| | | | | This creates a wb_iface child class called timed_wb_iface, which adds support for timed commands.
* Warning fixesNicholas Corgan2015-03-271-4/+4
| | | | | | | * 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
* usrp2: MAX_SEQS_OUT-1 because ack comes after sendJosh Blum2012-06-191-1/+1
|
* usrp2: cleanup for fifo control wraparound_lt16 routineJosh Blum2012-04-201-5/+3
|
* usrp2: updated fifo command with to 16 (1 short fifo)Josh Blum2012-04-181-1/+1
|
* fifo ctrl: code reorganization and integer wrap-around arithmeticJosh Blum2012-03-231-65/+90
|
* fifo ctrl: various tweaksJosh Blum2012-03-231-7/+7
|
* fifo ctrl: ~usrp2_fifo_ctrl acks, usrp2 DCM workaround, bootloader no blinkieJosh Blum2012-03-231-0/+8
|
* fifo ctrl: spi core work and host implementationJosh Blum2012-03-231-1/+60
|
* usrp2: permanent timeout increase for timed commandsJosh Blum2012-03-231-2/+6
|
* usrp2: implementation of timed commands workingJosh Blum2012-03-231-3/+21
|
* usrp2: integrated fifo ctrl into usrp2 modules, implemented window'd ackingJosh Blum2012-03-231-24/+24
|
* usrp2: added vrt pack/unpacker to fifo ctrlJosh Blum2012-03-231-33/+46
|
* usrp2: host and fw implementation for fifo controlJosh Blum2012-03-231-0/+119