Skip to content

Commit

Permalink
[nrf fromlist] hal_nordic: Fix reserved PPI faulty logic
Browse files Browse the repository at this point in the history
The list of reserved PPIs by MPSL should be kept if MPSL is enabled.
The 802154 radio driver is not the only user of MPSL.

Upstream PR: zephyrproject-rtos/zephyr#74139

Signed-off-by: Jonathan Rico <[email protected]>
  • Loading branch information
jori-nordic authored and anangl committed Jun 13, 2024
1 parent 27c0cfd commit 0cadaf1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions modules/hal_nordic/nrfx/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ menu "nrfx drivers"

rsource "Kconfig.logging"

config MPSL
bool
# Dummy kconfig to allow compiling outside of NCS

config NRFX_ADC
bool "ADC driver"
depends on $(dt_has_compat,$(DT_COMPAT_NORDIC_NRF_ADC))
Expand Down
2 changes: 1 addition & 1 deletion modules/hal_nordic/nrfx/nrfx_glue.h
Original file line number Diff line number Diff line change
Expand Up @@ -378,7 +378,7 @@ void nrfx_busy_wait(uint32_t usec_to_wait);
#define NRFX_PPI_GROUPS_USED_BY_802154_DRV 0
#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 Down

0 comments on commit 0cadaf1

Please sign in to comment.