-
Notifications
You must be signed in to change notification settings - Fork 7.3k
nordic: Clean up nrfx inclusions #19304
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
nordic: Clean up nrfx inclusions #19304
Conversation
Removed no longer existing directory |
e15cfc3
to
d2f5217
Compare
Updated |
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.
This seems to lead to build errors, now, possibly due to #17189 being merged, so it needs at least a rebase
Header files of nrfx HALs are not supposed to be included directly but only with their names prepended with the hal/ directory (so that an inclusion of an nrfx HAL header clearly differs from an inclusion of an nrfx driver header). Signed-off-by: Andrzej Głąbek <[email protected]>
d2f5217
to
c1abc59
Compare
Rebased. |
c1abc59
to
c5a3716
Compare
Blocked by zephyrproject-rtos/hal_nordic#7 which contains the fix for failing builds. |
This change is done so that there is no need to additionaly include <nrfx.h> before <soc/nrfx_coredep.h> (what might be a bit surprising) and so that <nrfx_config.h> doesn't need to be include separately for nRF SoCs requiring a special mapping of peripheral accessing symbols. This commit removes also no longer needed inclusions and updates the hal_nordic module with required minor correction of nrfx_glue.h. Signed-off-by: Andrzej Głąbek <[email protected]>
This file contains redundant definitions of a bunch of nRF IRQ numbers (not all, however) that only generates confusion, as enumeration values provided by MDK can be used instead. Signed-off-by: Andrzej Głąbek <[email protected]>
c5a3716
to
eb3fcd5
Compare
Updated |
A set of commits intended to clean up inclusions of nrfx files.
nordic: Use hal/ in all inclusions of nrfx HAL header files
Header files of nrfx HALs are not supposed to be included directly
but only with their names prepended with the hal/ directory (so that
an inclusion of an nrfx HAL header clearly differs from an inclusion
of an nrfx driver header).
soc: nordic: Include <nrfx.h> instead of <nrf.h> from <soc.h>
This change is done so that there is no need to additionaly include
<nrfx.h> before <soc/nrfx_coredep.h> (what might be a bit surprising)
and so that <nrfx_config.h> doesn't need to be include separately for
nRF SoCs requiring a special mapping of peripheral accessing symbols.
This commit removes also no longer needed inclusions and updates
the hal_nordic module with required minor correction of nrfx_glue.h.
soc: nordic: Get rid of nrf_common.h
This file contains redundant definitions of a bunch of nRF IRQ numbers
(not all, however) that only generates confusion, as enumeration values
provided by MDK can be used instead.
Requires zephyrproject-rtos/hal_nordic#5 to go in first.