From 6ec8cf3eeac70d4458ad7a4f7f1eea4f082c140d Mon Sep 17 00:00:00 2001 From: Martin Braun Date: Thu, 30 May 2019 14:21:41 -0700 Subject: rfnoc: Add default block controller The default block controller should get instantiated when no other suitable block controller can be found. --- host/lib/rfnoc/block_control.cpp | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 host/lib/rfnoc/block_control.cpp (limited to 'host/lib/rfnoc/block_control.cpp') diff --git a/host/lib/rfnoc/block_control.cpp b/host/lib/rfnoc/block_control.cpp new file mode 100644 index 000000000..78c390001 --- /dev/null +++ b/host/lib/rfnoc/block_control.cpp @@ -0,0 +1,24 @@ +// +// Copyright 2019 Ettus Research, a National Instruments Brand +// +// SPDX-License-Identifier: GPL-3.0-or-later +// + +#include +#include +#include +#include + +using namespace uhd::rfnoc; + +class block_control_impl : public block_control +{ +public: + RFNOC_BLOCK_CONSTRUCTOR(block_control) + { + set_prop_forwarding_policy(forwarding_policy_t::DROP); + set_action_forwarding_policy(forwarding_policy_t::DROP); + } +}; + +UHD_RFNOC_BLOCK_REGISTER_DIRECT(block_control, DEFAULT_NOC_ID, DEFAULT_BLOCK_NAME) -- cgit v1.2.3