-
Notifications
You must be signed in to change notification settings - Fork 342
softdevice_controller: align to nrfx 4.0 #1878
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
masz-nordic
merged 8 commits into
nrfconnect:collab-nrfx-4.0
from
masz-nordic:NRFX-8398
Oct 23, 2025
Merged
Changes from all commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
9e4f84a
softdevice_controller: align to nrfx 4.0
masz-nordic 8864cf4
mpsl: align to nrfx 4.0
masz-nordic 2b9bd79
crypto: align to nrfx 4.0
masz-nordic fca2634
gzll: align to nrfx 4.0
masz-nordic 35367c6
nrf_802154: align to nrfx 4.0
masz-nordic e6058a2
nrf_dm: align to nrfx 4.0
masz-nordic 18b1ff0
softperipheral: align to nrfx 4.0
masz-nordic 3f711df
mpsl: split mpsl_hwres
masz-nordic File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,68 @@ | ||
| /* | ||
| * Copyright (c) Nordic Semiconductor ASA | ||
| * | ||
| * SPDX-License-Identifier: LicenseRef-Nordic-5-Clause | ||
| */ | ||
|
|
||
| /** | ||
| * @file mpsl_dppi.h | ||
| * | ||
| * @defgroup mpsl_dppi MPSL DPPI API | ||
| * @ingroup mpsl | ||
| * | ||
| * This file defines an API to dynamically allocate some of hardware | ||
| * resources. The allocation functions are expected to be implemented | ||
| * outside of the MPSL. | ||
| * @{ | ||
| */ | ||
|
|
||
| #ifndef MPSL_DPPI_H__ | ||
| #define MPSL_DPPI_H__ | ||
|
|
||
| #include <nrfx.h> | ||
|
|
||
| #ifdef __cplusplus | ||
| extern "C" { | ||
| #endif | ||
|
|
||
| #if defined(DPPI_PRESENT) || defined(DOXYGEN) | ||
|
|
||
| /** @brief Allocate a DPPI channel of a DPPIC controller instance. | ||
| * | ||
| * @param[in] p_dppic Pointer to a DPPIC controller instance. | ||
| * @param[out] p_dppi_ch Allocated DPPI channel number on the given DPPIC instance. | ||
| * Value written at this pointer is valid only on successful | ||
| * allocation. | ||
| * | ||
| * @retval true Allocation successful. | ||
| * @retval false Allocation failed. | ||
| */ | ||
| bool mpsl_hwres_dppi_channel_alloc(NRF_DPPIC_Type * p_dppic, uint8_t * p_dppi_ch); | ||
|
|
||
| #endif /* DPPI_PRESENT */ | ||
|
|
||
| #if defined(PPIB_PRESENT) || defined(DOXYGEN) | ||
|
|
||
| /** @brief Allocate a PPIB channel of a PPIB-to-PPIB interconnection. | ||
| * | ||
| * @param[in] p_ppib Pointer to a PPIB instance. | ||
| * @param[out] p_ppib_ch Allocated PPIB channel number the for PPIB-to-PPIB | ||
| * interconnection identified by the @p p_ppib being one | ||
| * of the sides of the interconnection. | ||
| * Value written at this pointer valid only on successful | ||
| * allocation. | ||
| * | ||
| * @retval true Allocation successful. | ||
| * @retval false Allocation failed. | ||
| */ | ||
| bool mpsl_hwres_ppib_channel_alloc(NRF_PPIB_Type * p_ppib, uint8_t * p_ppib_ch); | ||
|
|
||
| #endif /* PPIB_PRESENT */ | ||
|
|
||
| #ifdef __cplusplus | ||
| } | ||
| #endif | ||
|
|
||
| #endif // MPSL_DPPI_H__ | ||
|
|
||
| /**@} */ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,45 @@ | ||
| /* | ||
| * Copyright (c) Nordic Semiconductor ASA | ||
| * | ||
| * SPDX-License-Identifier: LicenseRef-Nordic-5-Clause | ||
| */ | ||
|
|
||
| /** | ||
| * @file mpsl_hwres_zephyr.h | ||
| * | ||
| * @defgroup mpsl_hwres MPSL hardware resources API for Zephyr | ||
| * @ingroup mpsl | ||
| * | ||
| * This file defines fixed hardware resources used by the MPSL in Zephyr. | ||
| * @{ | ||
| */ | ||
|
|
||
| #ifndef MPSL_HWRES_ZEPHYR_H__ | ||
| #define MPSL_HWRES_ZEPHYR_H__ | ||
|
|
||
| #include <stdbool.h> | ||
| #include <stdint.h> | ||
|
|
||
| #ifdef __cplusplus | ||
| extern "C" { | ||
| #endif | ||
|
|
||
| /* Reserved (D)PPI, PPIB and IPCT resources for the supported platforms. */ | ||
| /* This corresponds to the PPI channels 19, 30, and 31. */ | ||
| #define MPSL_NRF52_PPI_CHANNELS_USED_MASK (0xc0080000) | ||
| /* This corresponds to the DPPI channels 0, 1, and 2. */ | ||
| #define MPSL_NRF53_DPPIC_CHANNELS_USED_MASK (0x00000007) | ||
| #define MPSL_NRF54L_DPPIC10_CHANNELS_USED_MASK (0x00000001) | ||
| #define MPSL_NRF54L_DPPIC20_CHANNELS_USED_MASK (0x00000001) | ||
| #define MPSL_NRF54L_PPIB11_CHANNELS_USED_MASK (0x00000001) | ||
| #define MPSL_NRF54L_PPIB21_CHANNELS_USED_MASK (0x00000001) | ||
| #define MPSL_NRF54H_DPPIC020_CHANNELS_USED_MASK (0x00000001) | ||
| #define MPSL_NRF54H_IPCT130_CHANNELS_USED_MASK (0x00000001) | ||
|
|
||
| #ifdef __cplusplus | ||
| } | ||
| #endif | ||
|
|
||
| #endif // MPSL_HWRES_ZEPHYR_H__ | ||
|
|
||
| /**@} */ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
was it removed accidentally? bool is used in the header file so it makes it cleaner when it is included explicitly
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nrfx.h provides bool so I thought it's more concise. If the preference is to make it explicit, I can change that.