aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib/usrp/usrp2
Commit message (Collapse)AuthorAgeFilesLines
* cmake: Update coding style to use lowercase commandsMartin Braun2018-11-141-2/+2
| | | | | | | | | | | | | | | | | Also updates our coding style file. Ancient CMake versions required upper-case commands. Later command names became case-insensitive. Now the preferred style is lower-case. Run the following shell code (with GNU compliant sed): cmake --help-command-list | grep -v "cmake version" | while read c; do echo 's/\b'"$(echo $c | tr '[:lower:]' '[:upper:]')"'\(\s*\)(/'"$c"'\1(/g' done > convert.sed \ && git ls-files -z -- bootstrap '*.cmake' '*.cmake.in' \ '*CMakeLists.txt' | xargs -0 gsed -i -f convert.sed && rm convert.sed (Make sure the backslashes don't get mangled!)
* lib: Purge use of boost::assign, except for uhd::dictMartin Braun2018-05-021-4/+6
| | | | | | | Replaced with initialization lists. Note: uhd::dict does not work with initializer lists without making changes to said data structure. This commit has no functional changes, so keeping the boost::assigns for uhd::dict.
* lib: Purge all references to boost::this_thread::sleep()Martin Braun2018-04-302-3/+6
| | | | Replace with std::this_thread::sleep_for().
* usrp2: Modify trace log statement in ad9777 controlMartin Braun2018-03-281-1/+1
| | | | Reviewed-by: Derek Kozek <derek.kozel@ettus.com>
* usrp2: Re-add ability to modulate in the DACMartin Braun2018-03-283-7/+85
| | | | | | | | | | | This partially reverts b29e80cc. That commit fixed a bug with numerical overflows, but also removed the ability to tune using the DAC, effectively reducing the DSP tuning range. This commit allows to tune within +/- 200 MHz using a combination of both the DAC and the DSP tuning in the FPGA. Reviewed-by: Derek Kozek <derek.kozel@ettus.com>
* uhd: Move internal headers to uhdlib/Martin Braun2018-03-145-17/+17
| | | | | | | | | | | | | | | | To avoid the proliferation of additional include directories and multiple ways of including project-local headers, we now default to moving all headers that are used across UHD into the uhdlib/ subdirectory. Some #include statements were also reordered as they were modified for closer compliance with the coding guidelines. Internal cpp source files should now include files like this: #include <uhdlib/rfnoc/ctrl_iface.hpp> Reviewed-by: Ashish Chaudhari <ashish.chaudhari@ettus.com>
* uhd: Update license headersMartin Braun2018-02-1918-17/+33
| | | | | | | 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-2217-204/+17
|
* UHD: Add eeprom info to dboard_basemichael-west2017-12-071-2/+2
|
* uhd: Changed mboard_eeprom_t interface, refactored MB EEPROM codeMartin Braun2017-09-295-7/+181
| | | | | | | | | | | | - 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
* utils: add set_thread_name API call, move thread_priority to threadAndrej Rode2017-06-291-1/+1
|
* uhd: Replaced many lexical_cast with appropriate C++11 equivalentsMartin Braun2017-06-292-6/+4
|
* uhd: tasks now use std::threads under the hood, and can't be interruptedMartin Braun2017-06-283-5/+10
| | | | | USRP1 and USRP2 used tasks that relied on Boost thread interruption mechanisms. These were replaced with explicit atomics.
* logging: Demoted a number of DEBUG messages to TRACEMartin Braun2017-04-052-5/+5
|
* utils: introduce new logging API and remove msg APIAndrej Rode2017-02-205-29/+29
|
* uhd: replace BOOST_FOREACH with C++11 range-based for loopAndrej Rode2017-02-106-27/+24
| | | | | Note: This is the first commit that uses for-range, and range-based for-loops are now usable for UHD development.
* usrp2: fixes according to coverity reportsAndrej Rode2017-01-123-3/+3
|
* lib: Removed more superfluous variablesMartin Braun2016-11-281-1/+1
|
* usrp2: Removed superfluous helper functionMartin Braun2016-11-281-4/+0
|
* Remove all boost:: namespace prefix for uint32_t, int32_t etc. (fixed-width ↵Martin Braun2016-11-0810-167/+167
| | | | | | | | 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).
* dboard_iface: Added FE name input to set_fe_connectionAshish Chaudhari2016-05-161-3/+3
| | | | | - A dboard_base class can have multiple frontends (subdevs) and the set_fe_connection needs to be able to distinguish between them
* dboard_iface: Added method to configure front connection and settingsAshish Chaudhari2016-03-211-0/+6
|
* Merge branch 'maint'Martin Braun2016-03-111-2/+2
|\
| * Fixed minor warnings:Nicholas Corgan2016-03-041-2/+2
| | | | | | | | | | | | * nirio_driver_iface_win: labeled unused variable for MinGW builds * b200_impl: fixed unreferenced variable warning * n200_image_loader: fixed signed vs. unsigned comparison
* | usrp: Refactored dboard_iface for all productsAshish Chaudhari2016-02-161-21/+52
| | | | | | | | | | | | | | - Made dboard_iface an interface! Removed PIMPL - Added unit "BOTH" to dboard API and expanded GPIO API width to 32 - Removed gpio_debug_mux. No product ever used that - Refactored gpio_atr cores to work with new dboard_iface
* | dboard: Added restricted dboard registration capabilityAshish Chaudhari2016-02-162-4/+2
| | | | | | | | | | | | - Moved dboard iface initialization to dboard_manager - Added a restricted register function. Restricted dboards don't expose their control iface in the property tree
* | prop_tree: Multiple API enhancements to uhd::propertyAshish Chaudhari2016-02-111-44/+44
| | | | | | | | | | | | | | | | | | - 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
* | cmake: Register components earlierMartin Braun2015-11-161-2/+0
|/ | | | | | | | | | All device-specific CMake components are now registered in one place, before the host/lib/ subdirs are sourced. This way, there are no cyclic dependencies. This solves the issue where ENABLE_X300=Off could disable USB, but preserves the fix where ENABLE_X300=Off would still build some X300 codes.
* UHD: Remove initialization of time to GPS time.michael-west2015-08-121-3/+0
|
* cmake: added variable to LIBUHD_REGISTER_COMPONENT macro to make required, ↵Nicholas Corgan2015-08-111-1/+1
| | | | | | set LibUHD to required * If required component's dependencies aren't met, CMake will throw an error unless user specifically disables it
* image_loader: force user to specify deviceNicholas Corgan2015-08-051-25/+55
| | | | | * On utility level, force user to use --args=type=foo * In each loader, throw an error if args are ambiguous
* Added uhd::image_loader class and uhd_image_loader utilityNicholas Corgan2015-07-155-19/+627
| | | | | | * 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
* USRP2: Separate FPGA compat numbers for USRP2 and N200.michael-west2015-04-232-3/+25
|
* Increase command FIFO depth of N2x0 and X3x0 to 64.michael-west2015-04-102-2/+2
|
* uhd: Add ability to get and set command time through dboard_iface.michael-west2015-04-036-14/+42
| | | | | This creates a wb_iface child class called timed_wb_iface, which adds support for timed commands.
* Warning fixesNicholas Corgan2015-03-272-10/+10
| | | | | | | * 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
* N2x0: Fixed missing usage of send_buff_sizeMartin Braun2015-03-033-3/+6
|
* usrp2: fixed image compatibility error messageNicholas Corgan2015-02-161-1/+1
| | | | * Point to usrp2_card_burner_gui.py instead of usrp2_card_burner.py
* Merging new UHD_IMAGES_DIR utilities and bug fixes.Ben Hilburn2015-01-271-4/+4
| | | | Also includes NI-USRP Windows Registry Key fixes.
* uhd: fixing TX DSP tuning on gen2 devices, special changes for n2xxBen Hilburn2014-10-071-25/+2
| | | | This fixes RX DSP core 200 from tuning outside range and causing overflows.
* Merge branch 'maint'Martin Braun2014-09-231-2/+0
|\
| * usrp: don't print duplicate GPSDO detection messagesNicholas Corgan2014-09-231-2/+0
| |
* | Give user the option to ignore daughterboard's calibration file at runtimeNicholas Corgan2014-09-022-3/+9
| | | | | | | | | | * Add "ignore-cal-file" to the uhd::device_addr_t arguments * Added documentation for new feature
* | Added missing pure virtual destructors to base classesNicholas Corgan2014-09-014-4/+16
| |
* | Merge branch 'maint'Martin Braun2014-08-181-5/+0
|\|
| * - Fixes for channel alignmentmichael-west2014-08-181-5/+0
| | | | | | | | | | | | | | | | | | | | - Added analog delay for radio clock - Added analog delay for DAC reference clocks - Removed resetting of clock control - Removed setting of reference clock and PPS to external sources during initialization - Fixes for set_time_unknown_pps - Removed wait for PPS edge after setting time from GPSDO - Changed set_time_unknonw_pps to time out based on system time rather than device VITA time
* | Merge branch 'maint'Martin Braun2014-07-311-1/+8
|\| | | | | | | | | Conflicts: host/utils/usrp_burn_mb_eeprom.cpp
| * Fix for BUG #492: UHD: set_time_unknown_pps() fails with GPSDO installedmichael-west2014-06-251-1/+8
| | | | | | | | - Added polling for PPS time change after setting time from GPSDO.
* | OctoClock firmware upgrade, added host driverNicholas Corgan2014-07-231-2/+3
|/ | | | | | | | | | * 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
* usrp2: fixed usrp2_card_burner.py and usrp_n2xx_simple_net_burner paths in ↵Nicholas Corgan2014-05-062-4/+17
| | | | incompatibility error messages