From 006100a1c13de5872203dc5d9404bf83a73b0878 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafa=C5=82=20Ku=C5=BAnia?= Date: Mon, 18 Nov 2024 15:40:50 +0100 Subject: [PATCH] modules: hal_nordic: add Kconfig selecting resource header MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The resource reservation header is now included according to a Kconfig value. The Kconfig can be overriden out-of-tree in case a different header is needed. Signed-off-by: Rafał Kuźnia --- modules/hal_nordic/nrfx/Kconfig | 4 ++++ modules/hal_nordic/nrfx/nrfx_glue.h | 4 +++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/modules/hal_nordic/nrfx/Kconfig b/modules/hal_nordic/nrfx/Kconfig index 1ffff73b356..1fbb694a291 100644 --- a/modules/hal_nordic/nrfx/Kconfig +++ b/modules/hal_nordic/nrfx/Kconfig @@ -1209,4 +1209,8 @@ config NRFX_PRS_BOX_4 endmenu +config NRFX_RESERVED_RESOURCES_HEADER + string + default "nrfx_config_reserved_resources.h" + endmenu # "nrfx drivers" diff --git a/modules/hal_nordic/nrfx/nrfx_glue.h b/modules/hal_nordic/nrfx/nrfx_glue.h index c65318f1fe3..8f1109f4a79 100644 --- a/modules/hal_nordic/nrfx/nrfx_glue.h +++ b/modules/hal_nordic/nrfx/nrfx_glue.h @@ -314,7 +314,9 @@ void nrfx_busy_wait(uint32_t usec_to_wait); /*------------------------------------------------------------------------------*/ -#include "nrfx_config_reserved_resources.h" +#ifdef CONFIG_NRFX_RESERVED_RESOURCES_HEADER +#include CONFIG_NRFX_RESERVED_RESOURCES_HEADER +#endif //------------------------------------------------------------------------------