From 3457ebc6679294087342d1fe8766644ee9c983f8 Mon Sep 17 00:00:00 2001 From: Krzysztof Chruscinski Date: Tue, 4 Jan 2022 08:48:31 +0100 Subject: [PATCH] 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 --- modules/hal_nordic/nrfx/Kconfig | 8 ++++++++ modules/hal_nordic/nrfx/nrfx_config.h | 4 ++++ 2 files changed, 12 insertions(+) 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