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 <rafal.kuznia@nordicsemi.no>
This commit is contained in:
parent
b78eea256b
commit
006100a1c1
2 changed files with 7 additions and 1 deletions
|
@ -1209,4 +1209,8 @@ config NRFX_PRS_BOX_4
|
||||||
|
|
||||||
endmenu
|
endmenu
|
||||||
|
|
||||||
|
config NRFX_RESERVED_RESOURCES_HEADER
|
||||||
|
string
|
||||||
|
default "nrfx_config_reserved_resources.h"
|
||||||
|
|
||||||
endmenu # "nrfx drivers"
|
endmenu # "nrfx drivers"
|
||||||
|
|
|
@ -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
|
||||||
|
|
||||||
//------------------------------------------------------------------------------
|
//------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue