Skip to content

Commit a56871a

Browse files
committed
modules: hal_nordic: nrfx: Add GPIOTE config flag
Add NRFX_GPIOTE_VAR_FEATURE_SUPPORT feature flag to nrfx configuration. It enables support for special GPIOTE0 instance in nrfx_gpiote driver. Signed-off-by: Krzysztof Chruściński <krzysztof.chruscinski@nordicsemi.no>
1 parent d30e9ad commit a56871a

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

modules/hal_nordic/nrfx/Kconfig

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -226,6 +226,10 @@ config NRFX_GPIOTE131
226226
depends on $(dt_nodelabel_exists,gpiote131)
227227
select NRFX_GPIOTE
228228

229+
config NRFX_GPIOTE_VAR_FEATURE_SUPPORT
230+
def_bool $(dt_nodelabel_enabled,gpiote0)
231+
depends on $(dt_nodelabel_bool_prop,gpiote0,fixed-channels-supported)
232+
229233
config NRFX_GPIOTE_NUM_OF_EVT_HANDLERS
230234
int "Number of event handlers"
231235
depends on NRFX_GPIOTE

modules/hal_nordic/nrfx/nrfx_kconfig.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -207,6 +207,9 @@
207207
#ifdef CONFIG_NRFX_GPIOTE131
208208
#define NRFX_GPIOTE131_ENABLED 1
209209
#endif
210+
#ifdef CONFIG_NRFX_GPIOTE_VAR_FEATURE_SUPPORT
211+
#define NRFX_GPIOTE_VAR_FEATURE_SUPPORT 1
212+
#endif
210213

211214
#ifdef CONFIG_NRFX_GPIOTE_NUM_OF_EVT_HANDLERS
212215
#define NRFX_GPIOTE_CONFIG_NUM_OF_EVT_HANDLERS CONFIG_NRFX_GPIOTE_NUM_OF_EVT_HANDLERS

0 commit comments

Comments
 (0)