Skip to content

Commit acf927e

Browse files
committed
NCS adjust
1 parent f4012b2 commit acf927e

File tree

2 files changed

+24
-6
lines changed

2 files changed

+24
-6
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

modules/hal_nordic/nrfx/nrfx_config_reserved_resources.h.jinja2

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -76,13 +76,22 @@
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>
81-
#define NRFX_PPI_CHANNELS_USED_BY_MPSL MPSL_RESERVED_PPI_CHANNELS
82-
#define NRFX_PPI_GROUPS_USED_BY_MPSL 0
81+
#define NRFX_PPI_CHANNELS_USED_BY_MPSL MPSL_RESERVED_PPI_CHANNELS
82+
#define NRFX_PPI_GROUPS_USED_BY_MPSL 0
8383
#else
84-
#define NRFX_PPI_CHANNELS_USED_BY_MPSL 0
85-
#define NRFX_PPI_GROUPS_USED_BY_MPSL 0
84+
#define NRFX_PPI_CHANNELS_USED_BY_MPSL 0
85+
#define NRFX_PPI_GROUPS_USED_BY_MPSL 0
86+
#endif
87+
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
8695
#endif
8796

8897
{% for dppic in dppic_inst %}

0 commit comments

Comments
 (0)