From 70db8cd12a794fa6f966c1e08a622ad5590a6880 Mon Sep 17 00:00:00 2001 From: Nikodem Kastelik Date: Fri, 6 Oct 2023 09:55:58 +0200 Subject: [PATCH] modules: hal_nordic: nrfx: enable NRFX_GPIOTE1 for non-secure builds Now it is needed to explicitly use NRF_GPIOTE1 instance in nrfx_gpiote driver for non-secure builds. Signed-off-by: Nikodem Kastelik --- modules/hal_nordic/nrfx/nrfx_config.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/modules/hal_nordic/nrfx/nrfx_config.h b/modules/hal_nordic/nrfx/nrfx_config.h index 3236daa12b..ce4a6214f7 100644 --- a/modules/hal_nordic/nrfx/nrfx_config.h +++ b/modules/hal_nordic/nrfx/nrfx_config.h @@ -117,6 +117,12 @@ #ifdef CONFIG_NRFX_GPIOTE #define NRFX_GPIOTE_ENABLED 1 +#if (defined(CONFIG_SOC_SERIES_NRF91X) || defined(CONFIG_SOC_SERIES_NRF53X)) \ + && defined(NRF_TRUSTZONE_NONSECURE) +#define NRFX_GPIOTE1_ENABLED 1 +#else +#define NRFX_GPIOTE0_ENABLED 1 +#endif #endif #ifdef CONFIG_NRFX_GPIOTE_LOG #define NRFX_GPIOTE_CONFIG_LOG_ENABLED 1