Skip to content

Commit 3457ebc

Browse files
nordic-krchcarlescufi
authored andcommitted
modules: hal_nordic: Add NRFX_GPIOTE_NUM_OF_EVT_HANDLERS option
Add option to specifiy number of nrfx_gpiote user handlers in Kconfig. Signed-off-by: Krzysztof Chruscinski <krzysztof.chruscinski@nordicsemi.no>
1 parent 241b477 commit 3457ebc

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

modules/hal_nordic/nrfx/Kconfig

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,14 @@ config NRFX_GPIOTE
6666
bool "Enable GPIOTE driver"
6767
depends on HAS_HW_NRF_GPIOTE
6868

69+
config NRFX_GPIOTE_NUM_OF_EVT_HANDLERS
70+
int "Number of event handlers"
71+
depends on NRFX_GPIOTE
72+
range 1 15
73+
help
74+
Specifies number of handlers that can be registered to nrfx_gpiote driver
75+
by the user.
76+
6977
config NRFX_I2S
7078
bool "Enable I2S driver"
7179
depends on HAS_HW_NRF_I2S

modules/hal_nordic/nrfx/nrfx_config.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,10 @@
9797
#define NRFX_GPIOTE_ENABLED 1
9898
#endif
9999

100+
#ifdef CONFIG_NRFX_GPIOTE_NUM_OF_EVT_HANDLERS
101+
#define NRFX_GPIOTE_CONFIG_NUM_OF_EVT_HANDLERS CONFIG_NRFX_GPIOTE_NUM_OF_EVT_HANDLERS
102+
#endif
103+
100104
#ifdef CONFIG_NRFX_I2S
101105
#define NRFX_I2S_ENABLED 1
102106
#endif

0 commit comments

Comments
 (0)