Skip to content

Commit 9078842

Browse files
committed
[nrf noup] modules: hal_nordic: adjust nrfx reservations to NCS
Added ncs-specific modules to nrfx_config_reserved_resources. The modules are: - mpsl - nrfe Signed-off-by: Rafał Kuźnia <[email protected]>
1 parent 127d816 commit 9078842

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

modules/hal_nordic/nrfx/nrfx_config_reserved_resources.h

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@
7676
#endif
7777
#endif /* CONFIG_NRF_802154_RADIO_DRIVER */
7878

79-
#if defined(CONFIG_NRF_802154_RADIO_DRIVER) && !defined(CONFIG_NRF_802154_SL_OPENSOURCE)
79+
#if defined(CONFIG_MPSL)
8080
#include <mpsl.h>
8181
#define NRFX_PPI_CHANNELS_USED_BY_MPSL MPSL_RESERVED_PPI_CHANNELS
8282
#define NRFX_PPI_GROUPS_USED_BY_MPSL 0
@@ -85,6 +85,15 @@
8585
#define NRFX_PPI_GROUPS_USED_BY_MPSL 0
8686
#endif
8787

88+
#if defined(CONFIG_NRFE)
89+
#include <nrfe_config.h>
90+
#define NRFX_DPPI0_CHANNELS_USED_BY_NRFE NRFE_RESERVED_PPI_CHANNELS
91+
#define NRFX_DPPI0_GROUPS_USED_BY_NRFE 0
92+
#else
93+
#define NRFX_DPPI0_CHANNELS_USED_BY_NRFE 0
94+
#define NRFX_DPPI0_GROUPS_USED_BY_NRFE 0
95+
#endif
96+
8897
#ifndef NRFX_DPPI0_CHANNELS_USED_BY_BT_CTLR
8998
#define NRFX_DPPI0_CHANNELS_USED_BY_BT_CTLR 0
9099
#endif

0 commit comments

Comments
 (0)