Skip to content

zephyr-sys: Handle deflected GPIO constants #104

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
merged 1 commit into from
Jun 4, 2025
Merged

zephyr-sys: Handle deflected GPIO constants #104

merged 1 commit into from
Jun 4, 2025

Conversation

d3zd3z
Copy link
Collaborator

@d3zd3z d3zd3z commented Jun 4, 2025

bindgen is willing to perform some simple math when expanding macros, but, does not see through the BIT macro.

As a workaround, until we can come up with a better solution, export ZR_ prefixed versions that are consts so that they will get exported. Unfortunately, this changes the visible exported name (which should be fixed as well)

bindgen is willing to perform some simple math when expanding macros,
but, does not see through the BIT macro.

As a workaround, until we can come up with a better solution, export
`ZR_` prefixed versions that are consts so that they will get exported.
Unfortunately, this changes the visible exported name (which should be
fixed as well)

Signed-off-by: David Brown <[email protected]>
@d3zd3z d3zd3z merged commit 898662c into main Jun 4, 2025
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants