Skip to content
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

samples: boards: nrf: nrfx: Fix (D)PPI dependency #78181

Conversation

nordic-krch
Copy link
Contributor

Fix dependency which was not correctly working as (D)PPI was enabled by UART and not by this setting. When other modules were not enabling (D)PPI it was not enabled and compilation was failing.

carlescufi
carlescufi previously approved these changes Sep 9, 2024
@carlescufi carlescufi added the Trivial Changes that can be reviewed by anyone, i.e. doc changes, minor build system tweaks, etc. label Sep 9, 2024
kartben
kartben previously approved these changes Sep 10, 2024
@@ -2,10 +2,10 @@
# SPDX-License-Identifier: Apache-2.0

config NRFX_DPPI
default $(dt_has_compat,$(DT_COMPAT_NORDIC_NRF_DPPIC))
default HAS_HW_NRF_DPPIC
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The actual problem here is that the DT_COMPAT_NORDIC_NRF_DPPIC symbol is not defined yet, since "Kconfig.zephyr" is sourced at the end of this file, and in my opinion this should be corrected by moving the source instruction.

HAS_HW_NRF_DPPIC evaluates to $(dt_compat_enabled,...) so it's not entirely correct here - the thing is that the nrfx_dppi driver is to be enabled when DPPI is available on a given SoC, not only when the corresponding node is enabled in devicetree (it is always enabled now, so currently the effect is the same). It's just a detail, but I think it can be misleading.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

move source Kconfig.zephyr to the top.

Move Kconfig.zephyr above local kconfigs.

Signed-off-by: Krzysztof Chruściński <[email protected]>
@anangl
Copy link
Member

anangl commented Sep 12, 2024

This change was merged as part of #78179.

@anangl anangl closed this Sep 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: Samples Samples platform: nRF Nordic nRFx Trivial Changes that can be reviewed by anyone, i.e. doc changes, minor build system tweaks, etc.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants