Skip to content

Commit

Permalink
NCS adjust
Browse files Browse the repository at this point in the history
  • Loading branch information
e-rk committed Oct 21, 2024
1 parent f4012b2 commit acf927e
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 6 deletions.
11 changes: 10 additions & 1 deletion modules/hal_nordic/nrfx/nrfx_config_reserved_resources.h
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@
#endif
#endif /* CONFIG_NRF_802154_RADIO_DRIVER */

#if defined(CONFIG_NRF_802154_RADIO_DRIVER) && !defined(CONFIG_NRF_802154_SL_OPENSOURCE)
#if defined(CONFIG_MPSL)
#include <mpsl.h>
#define NRFX_PPI_CHANNELS_USED_BY_MPSL MPSL_RESERVED_PPI_CHANNELS
#define NRFX_PPI_GROUPS_USED_BY_MPSL 0
Expand All @@ -85,6 +85,15 @@
#define NRFX_PPI_GROUPS_USED_BY_MPSL 0
#endif

#if defined(CONFIG_NRFE)
#include <nrfe_config.h>
#define NRFX_DPPI0_CHANNELS_USED_BY_NRFE NRFE_RESERVED_PPI_CHANNELS
#define NRFX_DPPI0_GROUPS_USED_BY_NRFE 0
#else
#define NRFX_DPPI0_CHANNELS_USED_BY_NRFE 0
#define NRFX_DPPI0_GROUPS_USED_BY_NRFE 0
#endif

#ifndef NRFX_DPPI0_CHANNELS_USED_BY_BT_CTLR
#define NRFX_DPPI0_CHANNELS_USED_BY_BT_CTLR 0
#endif
Expand Down
19 changes: 14 additions & 5 deletions modules/hal_nordic/nrfx/nrfx_config_reserved_resources.h.jinja2
Original file line number Diff line number Diff line change
Expand Up @@ -76,13 +76,22 @@
#endif
#endif /* CONFIG_NRF_802154_RADIO_DRIVER */

#if defined(CONFIG_NRF_802154_RADIO_DRIVER) && !defined(CONFIG_NRF_802154_SL_OPENSOURCE)
#if defined(CONFIG_MPSL)
#include <mpsl.h>
#define NRFX_PPI_CHANNELS_USED_BY_MPSL MPSL_RESERVED_PPI_CHANNELS
#define NRFX_PPI_GROUPS_USED_BY_MPSL 0
#define NRFX_PPI_CHANNELS_USED_BY_MPSL MPSL_RESERVED_PPI_CHANNELS
#define NRFX_PPI_GROUPS_USED_BY_MPSL 0
#else
#define NRFX_PPI_CHANNELS_USED_BY_MPSL 0
#define NRFX_PPI_GROUPS_USED_BY_MPSL 0
#define NRFX_PPI_CHANNELS_USED_BY_MPSL 0
#define NRFX_PPI_GROUPS_USED_BY_MPSL 0
#endif

#if defined(CONFIG_NRFE)
#include <nrfe_config.h>
#define NRFX_DPPI0_CHANNELS_USED_BY_NRFE NRFE_RESERVED_PPI_CHANNELS
#define NRFX_DPPI0_GROUPS_USED_BY_NRFE 0
#else
#define NRFX_DPPI0_CHANNELS_USED_BY_NRFE 0
#define NRFX_DPPI0_GROUPS_USED_BY_NRFE 0
#endif

{% for dppic in dppic_inst %}
Expand Down

0 comments on commit acf927e

Please sign in to comment.