Skip to content

Commit c32b7ad

Browse files
committed
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. Signed-off-by: Rafał Kuźnia <[email protected]>
1 parent 03cb779 commit c32b7ad

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

modules/hal_nordic/nrfx/Kconfig

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

12141214
endmenu
12151215

1216+
config NRFX_RESERVED_RESOURCES_HEADER
1217+
string
1218+
default "nrfx_config_reserved_resources.h"
1219+
12161220
endmenu # "nrfx drivers"

modules/hal_nordic/nrfx/nrfx_glue.h

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

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

317-
#include "nrfx_config_reserved_resources.h"
317+
#include CONFIG_NRFX_RESERVED_RESOURCES_HEADER
318318

319319
//------------------------------------------------------------------------------
320320

0 commit comments

Comments
 (0)