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 //------------------------------------------------------------------------------