aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib/usrp_clock/octoclock
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 some use of boost::system_timeMartin Braun2018-07-121-3/+4
| | | | | These are all timeout loops, which now use std::chrono::steady_clock::now() to check for timeout events.
* lib: Purge all references to boost::this_thread::sleep()Martin Braun2018-04-302-4/+7
| | | | Replace with std::this_thread::sleep_for().
* uhd: Move internal headers to uhdlib/Martin Braun2018-03-141-2/+2
| | | | | | | | | | | | | | | | 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-198-7/+15
| | | | | | | 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-228-96/+8
|
* uhd: Replaced many lexical_cast with appropriate C++11 equivalentsMartin Braun2017-06-293-5/+3
|
* utils: introduce new logging API and remove msg APIAndrej Rode2017-02-201-19/+16
|
* uhd: replace BOOST_FOREACH with C++11 range-based for loopAndrej Rode2017-02-103-7/+5
| | | | | Note: This is the first commit that uses for-range, and range-based for-loops are now usable for UHD development.
* Remove all boost:: namespace prefix for uint32_t, int32_t etc. (fixed-width ↵Martin Braun2016-11-086-59/+59
| | | | | | | | 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).
* Merge branch 'UHD-3.9.LTS' into maintMartin Braun2016-09-021-13/+10
|\ | | | | | | | | | | | | | | This provides the GPS fixes. Conflicts: host/CMakeLists.txt tools/debs/upload_debs.sh
| * Octoclock: Simplify GPSDO UART so it does not strip or add charactersmichael-west2016-09-021-14/+10
| |
| * GPSDO: Make sure read_uart() returns only complete strings for all devices.michael-west2016-09-021-0/+1
| |
* | Merge branch 'maint'Martin Braun2016-08-017-43/+60
|\| | | | | | | | | | | Conflicts: host/lib/usrp/dboard/db_wbx_version2.cpp host/lib/usrp/dboard/db_wbx_version3.cpp
| * Octoclock: Fixed issues related to missing strings from GPSDO.michael-west2016-06-282-13/+26
| | | | | | | | | | - Corrected case when num_wraps overflowed - Added limit to cache age
| * Octoclock: Fix firmware version compatibilitymichael-west2016-06-277-30/+34
| |
* | Merge branch 'maint'Martin Braun2016-06-176-34/+64
|\|
| * octoclock: bugfixes, bumped firmware compat number to 4Nicholas Corgan2016-06-176-32/+62
| | | | | | | | | | | | | | | | | | * host: consistency in setting packet sequence numbers * firmware: populate packet length field when setting GPSDO cache * both: logic for dealing with mismatching compatibility numbers Reviewed-By: Michael West <michael.west@ettus.com> Reviewed-By: Martin Braun <martin.braun@ettus.com>
| * Octoclock: Fix off by one errors in uart codemichael-west2016-06-161-2/+2
| |
* | Merge branch 'maint'Martin Braun2016-06-141-2/+2
|\|
| * Spelling fixesNicholas Corgan2016-06-141-2/+2
| |
* | Merge branch 'maint'Martin Braun2016-06-061-8/+10
|\|
| * octoclock: Fix multi-line #define statementsMarcus Müller2016-06-061-8/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Now, use `do{...} while(0)` to pack multiple statements into a single one that isn't fragile. Currently ``` if(state_just_right) OCTOCLOCK_SEND_AND_RECV(all,the,options); ``` would introduce annoying bugs. Generally, there's no good reason this is a `#define` rather than a C/C++ function. The `OCTOCLOCK_PACKET_MATCHES` should probably be a C function, too, or simply an overloaded `==` operator on to `const octoclock_packet_t&`.
* | prop_tree: Multiple API enhancements to uhd::propertyAshish Chaudhari2016-02-111-7/+7
| | | | | | | | | | | | | | | | | | - 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
* | Merge branch 'maint'Ashish Chaudhari2015-12-156-670/+44
|\| | | | | | | | | | | | | Conflicts: host/lib/usrp/b200/b200_impl.hpp host/lib/usrp/e300/e300_fpga_defs.hpp host/lib/usrp/x300/x300_fw_common.h
| * ihex: Windows fixesNicholas Corgan2015-12-141-9/+8
| |
| * octoclock: Now uses internal ihex parserMartin Braun2015-12-146-669/+44
| |
* | cmake: Cleaned up output, removed duplicate OctoClock component registrationMartin Braun2015-11-171-2/+0
|/
* octoclock: fixed still-in-bootloader error messageNicholas Corgan2015-10-061-1/+1
|
* Fixed minor warningsNicholas Corgan2015-09-012-7/+7
| | | | | | * Unreferenced exceptions in try-catch statements * Incorrect function documentation * Unlabelled unused variables
* octoclock: replaced Intel hex -> binary converterNicholas Corgan2015-08-148-290/+631
|
* 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-13/+35
| | | | | * 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-5/+617
| | | | | | * 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
* OctoClock bugfixesNicholas Corgan2015-07-092-15/+28
| | | | | | * Bumped compatibility version to 3 * firmware: Ethernet, clkdist bugfixes * lib: fixed invalid rev detection
* Consolidated byte_vector common code into single fileNicholas Corgan2015-03-271-21/+2
|
* Warning fixesNicholas Corgan2015-03-272-2/+3
| | | | | | | * 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
* uhd: Fixed multiple compiler warnings (unused variables, missing literal f)Martin Braun2015-03-111-1/+1
|
* Merging new UHD_IMAGES_DIR utilities and bug fixes.Ben Hilburn2015-01-271-3/+3
| | | | Also includes NI-USRP Windows Registry Key fixes.
* OctoClock: bugfixes/improvementsNicholas Corgan2014-08-201-4/+5
| | | | | | | | | * Fixed Ethernet initialization problem * Improved external reference detection * Added gratuitous ARP, sent upon power-up * Tweaked host-side timing for initialization and firmware burning * Fixed logic for dealing with firmware incompatibility * Misc efficiency/reliability improvements to firmware's network code
* OctoClock firmware upgrade, added host driverNicholas Corgan2014-07-237-0/+1101
* 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