Commit 17c3a231 authored by Krzysztof Chruściński's avatar Krzysztof Chruściński Committed by Henrik Brix Andersen
Browse files

modules: hal_nordic: nrfx: nrfx_glue: Improve GPIOTE_CHANNELS_USED

Channels owned by a child core shall also be included in the mask of
used channels (channels that cannot be allocated by the GPIOTE channel
allocator).

Signed-off-by: default avatarKrzysztof Chruściński <krzysztof.chruscinski@nordicsemi.no>
parent 1c4dbf7f
Loading
Loading
Loading
Loading
+4 −1
Changes for modules/hal_nordic/nrfx/nrfx_glue.h: 4 added lines, 1 removed line.
Original line number Diff line number Diff line
@@ -335,7 +335,10 @@ void nrfx_busy_wait(uint32_t usec_to_wait);
				   NRFX_PPI_GROUPS_USED_BY_MPSL)

/** @brief Bitmask that defines GPIOTE130 channels reserved for use outside of the nrfx library. */
#define NRFX_GPIOTE130_CHANNELS_USED ~NRFX_CONFIG_MASK_DT(DT_NODELABEL(gpiote130), owned_channels)
#define NRFX_GPIOTE130_CHANNELS_USED \
	(~NRFX_CONFIG_MASK_DT(DT_NODELABEL(gpiote130), owned_channels) | \
	 NRFX_CONFIG_MASK_DT(DT_NODELABEL(gpiote130), child_owned_channels))


#if defined(CONFIG_BT_CTLR)
/*