diff --git a/modules/hal_nordic/nrfx/Kconfig b/modules/hal_nordic/nrfx/Kconfig index 4d34f6c73a2..c66876b24b5 100644 --- a/modules/hal_nordic/nrfx/Kconfig +++ b/modules/hal_nordic/nrfx/Kconfig @@ -66,6 +66,14 @@ config NRFX_GPIOTE bool "Enable GPIOTE driver" depends on HAS_HW_NRF_GPIOTE +config NRFX_GPIOTE_NUM_OF_EVT_HANDLERS + int "Number of event handlers" + depends on NRFX_GPIOTE + range 1 15 + help + Specifies number of handlers that can be registered to nrfx_gpiote driver + by the user. + config NRFX_I2S bool "Enable I2S driver" depends on HAS_HW_NRF_I2S diff --git a/modules/hal_nordic/nrfx/nrfx_config.h b/modules/hal_nordic/nrfx/nrfx_config.h index c6635617ddd..1dcf822e9ca 100644 --- a/modules/hal_nordic/nrfx/nrfx_config.h +++ b/modules/hal_nordic/nrfx/nrfx_config.h @@ -97,6 +97,10 @@ #define NRFX_GPIOTE_ENABLED 1 #endif +#ifdef CONFIG_NRFX_GPIOTE_NUM_OF_EVT_HANDLERS +#define NRFX_GPIOTE_CONFIG_NUM_OF_EVT_HANDLERS CONFIG_NRFX_GPIOTE_NUM_OF_EVT_HANDLERS +#endif + #ifdef CONFIG_NRFX_I2S #define NRFX_I2S_ENABLED 1 #endif