Skip to content

Commit

Permalink
modules: hal_nordic: nrfx_glue: Remove NRFX_GPIOTE_CHANNELS_USED
Browse files Browse the repository at this point in the history
This definition is no longer supported by the nrfx_gpiote driver (since
nrfx 3.2.0, reserved channels need to be defined per GPIOTE instance),
so remove it to not mislead users.

Signed-off-by: Andrzej Głąbek <[email protected]>
  • Loading branch information
anangl authored and nashif committed May 24, 2024
1 parent cc602a6 commit 2e8f104
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions modules/hal_nordic/nrfx/nrfx_glue.h
Original file line number Diff line number Diff line change
Expand Up @@ -334,9 +334,6 @@ void nrfx_busy_wait(uint32_t usec_to_wait);
NRFX_PPI_GROUPS_USED_BY_802154_DRV | \
NRFX_PPI_GROUPS_USED_BY_MPSL)

/** @brief Bitmask that defines GPIOTE channels that are reserved for use outside of the nrfx library. */
#define NRFX_GPIOTE_CHANNELS_USED NRFX_GPIOTE_CHANNELS_USED_BY_BT_CTLR

#if defined(CONFIG_BT_CTLR)
/*
* The enabled Bluetooth controller subsystem is responsible for providing
Expand All @@ -348,11 +345,9 @@ void nrfx_busy_wait(uint32_t usec_to_wait);
#include <bt_ctlr_used_resources.h>
#define NRFX_PPI_CHANNELS_USED_BY_BT_CTLR BT_CTLR_USED_PPI_CHANNELS
#define NRFX_PPI_GROUPS_USED_BY_BT_CTLR BT_CTLR_USED_PPI_GROUPS
#define NRFX_GPIOTE_CHANNELS_USED_BY_BT_CTLR BT_CTLR_USED_GPIOTE_CHANNELS
#else
#define NRFX_PPI_CHANNELS_USED_BY_BT_CTLR 0
#define NRFX_PPI_GROUPS_USED_BY_BT_CTLR 0
#define NRFX_GPIOTE_CHANNELS_USED_BY_BT_CTLR 0
#endif

#if defined(CONFIG_NRF_802154_RADIO_DRIVER)
Expand Down

0 comments on commit 2e8f104

Please sign in to comment.