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

modules: Facilitate the use of nrfx drivers #18895

Merged

Conversation

anangl
Copy link
Member

@anangl anangl commented Sep 4, 2019

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.

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>
modules/Kconfig.nordic Outdated Show resolved Hide resolved
@zephyrbot zephyrbot added area: PWM Pulse Width Modulation area: I2C area: SPI SPI bus labels Sep 4, 2019
modules/Kconfig.nordic Outdated Show resolved Hide resolved
@zephyrbot
Copy link
Collaborator

zephyrbot commented Sep 4, 2019

All checks are passing now.

Review history of this comment for details about previous failed status.
Note that some checks might have not completed yet.

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>
@anangl anangl force-pushed the facilitate_nrfx_drivers_use branch from df3a702 to 70e3d25 Compare September 4, 2019 12:11
@anangl anangl changed the title [DNM] Facilitate the use of nrfx drivers [DNM] modules: Facilitate the use of nrfx drivers Sep 5, 2019
@anangl anangl added the Blocked Blocked by another PR or issue label Sep 5, 2019
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>
@anangl anangl force-pushed the facilitate_nrfx_drivers_use branch from 70e3d25 to 4ef25a0 Compare September 6, 2019 09:24
@anangl
Copy link
Member Author

anangl commented Sep 6, 2019

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.

@anangl anangl changed the title [DNM] modules: Facilitate the use of nrfx drivers modules: Facilitate the use of nrfx drivers Sep 6, 2019
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>
@anangl anangl force-pushed the facilitate_nrfx_drivers_use branch from 4ef25a0 to 5316f04 Compare September 10, 2019 10:15
@anangl
Copy link
Member Author

anangl commented Sep 10, 2019

Updated west.yml with the proper revision of the hal_nordic module as zephyrproject-rtos/hal_nordic#2 has been merged.

@anangl anangl removed Blocked Blocked by another PR or issue DNM This PR should not be merged (Do Not Merge) labels Sep 10, 2019
Copy link
Collaborator

@kl-cruz kl-cruz left a 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.

@carlescufi carlescufi merged commit 916bf0e into zephyrproject-rtos:master Sep 10, 2019
@anangl anangl deleted the facilitate_nrfx_drivers_use branch September 10, 2019 11:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants