-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
TimingSource: basic implementation of snoop logic
Adds timing block with unit-test and dokumentation. run `build/blocklib/timing/test/qa_timingSource timing-hardware` to run the actual hardware tests, which are disabled by default because they cannot work on the CI. Other changes: timing.hpp: use custom signal group to allow multiple threads Special thanks to @RalphSteinhagen and @slebedev for their feedback and for catching a few issues early on in the review. Signed-off-by: Alexander Krimm <alex@wirew0rm.de>
- Loading branch information
Showing
10 changed files
with
922 additions
and
146 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,28 @@ | ||
if (NOT EMSCRIPTEN AND NOT CLANG) | ||
add_library(timing INTERFACE) | ||
target_include_directories(timing INTERFACE ${CMAKE_CURRENT_SOURCE_DIR}/include/) | ||
if(NOT EMSCRIPTEN AND NOT CLANG) | ||
add_library(timing INTERFACE include/timing.hpp include/TimingSource.hpp) | ||
target_include_directories(timing | ||
INTERFACE ${CMAKE_CURRENT_SOURCE_DIR}/include/) | ||
target_link_libraries(timing INTERFACE PkgConfig::saftlib | ||
PkgConfig::etherbone) | ||
|
||
if (GR_DIGITIZERS_TOPLEVEL_PROJECT) | ||
cmrc_add_resource_library( | ||
ui_assets | ||
NAMESPACE | ||
ui_assets | ||
WHENCE | ||
${imgui_SOURCE_DIR}/misc/fonts | ||
${imgui_SOURCE_DIR}/misc/fonts/Roboto-Medium.ttf) | ||
if(GR_DIGITIZERS_TOPLEVEL_PROJECT) | ||
cmrc_add_resource_library( | ||
ui_assets NAMESPACE ui_assets WHENCE ${imgui_SOURCE_DIR}/misc/fonts | ||
${imgui_SOURCE_DIR}/misc/fonts/Roboto-Medium.ttf) | ||
|
||
add_executable(test-timing src/test-timing.cpp) | ||
target_link_libraries(test-timing PRIVATE gr-digitizers-options timing PkgConfig::saftlib PkgConfig::etherbone imgui implot gnuradio-algorithm gnuradio-core ui_assets) | ||
endif () | ||
endif () | ||
add_executable(test-timing src/test-timing.cpp) | ||
target_link_libraries( | ||
test-timing | ||
PRIVATE gr-digitizers-options | ||
timing | ||
imgui | ||
implot | ||
gnuradio-algorithm | ||
gnuradio-core | ||
ui_assets) | ||
endif() | ||
endif() | ||
|
||
if (ENABLE_GR_DIGITIZERS_TESTING) | ||
add_subdirectory(test) | ||
endif () | ||
if(ENABLE_GR_DIGITIZERS_TESTING) | ||
add_subdirectory(test) | ||
endif() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.