Skip to content

Commit 3374ca1

Browse files
committed
[nrf fromlist] modules: hal_nordic: add Kconfig selecting resource header
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. Upstream PR #: 81602 Signed-off-by: Rafał Kuźnia <[email protected]>
1 parent 70280cd commit 3374ca1

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

modules/hal_nordic/nrfx/Kconfig

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1209,4 +1209,8 @@ config NRFX_PRS_BOX_4
12091209

12101210
endmenu
12111211

1212+
config NRFX_RESERVED_RESOURCES_HEADER
1213+
string
1214+
default "nrfx_config_reserved_resources.h"
1215+
12121216
endmenu # "nrfx drivers"

modules/hal_nordic/nrfx/nrfx_glue.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -314,7 +314,9 @@ void nrfx_busy_wait(uint32_t usec_to_wait);
314314

315315
/*------------------------------------------------------------------------------*/
316316

317-
#include "nrfx_config_reserved_resources.h"
317+
#ifdef CONFIG_NRFX_RESERVED_RESOURCES_HEADER
318+
#include CONFIG_NRFX_RESERVED_RESOURCES_HEADER
319+
#endif
318320

319321
//------------------------------------------------------------------------------
320322

0 commit comments

Comments
 (0)