Skip to content

build: remove gpio-get-direction patch #7

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

Open
cfriedt opened this issue Dec 13, 2020 · 1 comment
Open

build: remove gpio-get-direction patch #7

cfriedt opened this issue Dec 13, 2020 · 1 comment
Assignees
Labels
build documentation Improvements or additions to documentation enhancement New feature or request
Milestone

Comments

@cfriedt
Copy link
Owner

cfriedt commented Dec 13, 2020

There is not yet a PR in Zephyr to support querying any kind of state from GPIO devices.

It has previously been stated that the application should keep track of any such state.

However, as a generalization, the hardware itself keeps track of GPIO state. Whether or not it's possible to query those values from hardware is another issue. Also synchronization of those values is yet another issue.

The existing patch simply keeps track of GPIO state in software, but the eventual API should be flexible enough to allow specific drivers to implement it with hardware-specific register accesses or alternatively using the basic software approach.

The README.rst file should be updated to reflect the patches that must be applied.

@cfriedt cfriedt self-assigned this Dec 13, 2020
@cfriedt cfriedt added build documentation Improvements or additions to documentation labels Dec 13, 2020
@cfriedt cfriedt added this to the Beta milestone Dec 13, 2020
@cfriedt cfriedt added the enhancement New feature or request label Dec 13, 2020
@cfriedt
Copy link
Owner Author

cfriedt commented Jul 6, 2022

The change was merged in zephyrproject-rtos/zephyr#40325. It likely will not be backported, so perhaps pinning to LTSv2 is unrealistic. May need to revisit #70

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
build documentation Improvements or additions to documentation enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant