Skip to content

Commit

Permalink
[nrf noup] modules: hal_nordic: adjust nrfx reservations to NCS
Browse files Browse the repository at this point in the history
Added ncs-specific modules to nrfx_config_reserved_resources.
The modules are:
- mpsl
- nrfe

Signed-off-by: Rafał Kuźnia <rafal.kuznia@nordicsemi.no>
  • Loading branch information
e-rk committed Oct 23, 2024
1 parent f1d0aeb commit 5a3a712
Showing 1 changed file with 10 additions and 1 deletion.
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

0 comments on commit 5a3a712

Please sign in to comment.