-
Notifications
You must be signed in to change notification settings - Fork 6.8k
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
modules: Facilitate the use of nrfx drivers #18895
modules: Facilitate the use of nrfx drivers #18895
Conversation
Use a consistent way of enabling particular instances of peripherals in nrfx drivers through options defined in modules/Kconfig.nordic, to make the usage of nrfx drivers in Zephyr, especially the ones for which there are no Zephyr driver shims (yet), easier. Jira: NCSDK-2744 Signed-off-by: Andrzej Głąbek <andrzej.glabek@nordicsemi.no>
All checks are passing now. Review history of this comment for details about previous failed status. |
The options are given prompts, so that they become accessible from application configuration files and visible in menuconfig, and they are complemented with proper dependencies, so that only the relevant ones for the selected SoC are made available. Jira: NCSDK-2744 Signed-off-by: Andrzej Głąbek <andrzej.glabek@nordicsemi.no>
df3a702
to
70e3d25
Compare
Quite a few nrfx drivers are missing corresponding Kconfig options that would enable their use in Zephyr applications. Add such options, to facilitate the use of nRF peripherals for which there are no Zephyr driver shims or even suitable APIs. Jira: NCSDK-2744 Signed-off-by: Andrzej Głąbek <andrzej.glabek@nordicsemi.no>
70e3d25
to
4ef25a0
Compare
In the hal_nordic module I added a protection against including particular nrfx_config_*.h files directly, not through the common nrfx_config.h. I also moved the change done to the west manifest to a separate commit, for clarity. |
Update the module revision so that the following commits become effective: * nrfx_config: Use common mappings of Kconfig options to nrfx macros * nrfx_config: Unify the way of enabling instances in nrfx drivers * nrfx_config: Add missing mappings of Kconfig option symbols * CMakeLists: Add missing inclusions of driver implementation files The above changes require a minor correction in the nrf91/soc.h file, so it is also modified in this commit. Signed-off-by: Andrzej Głąbek <andrzej.glabek@nordicsemi.no>
4ef25a0
to
5316f04
Compare
Updated west.yml with the proper revision of the hal_nordic module as zephyrproject-rtos/hal_nordic#2 has been merged. |
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.
I see no problems here. Approved.
This set of commits is intended to facilitate the use of nrfx drivers, and hence nRF peripherals, in Zephyr applications, especially in cases when there are no corresponding Zephyr driver shims.
Requires zephyrproject-rtos/hal_nordic#2 to go in first.