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

platforms(adaptors): add a generic analog pin adaptor #1041

Conversation

gen2thomas
Copy link
Collaborator

@gen2thomas gen2thomas commented Nov 26, 2023

Solved issues and/or description of the change

Introduce a library at system level for sysfs access. The library is used now for the sysfs digitalpin access, pwm pin access, and a new sysfs analog pin system library.

Based on the library - at adaptor level a new generic adaptor was introduced to access e.g. sysfs in a generic way and be able to implement drivers. Beaglebone and Edison are already converted to use the new base adaptor for its AnalogRead() capability.

Manual test

none

Checklist

  • The PR's target branch is 'hybridgroup:dev'
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes (e.g. by run make test)
  • No linter errors exist locally (e.g. by run make fmt_check)
  • I have performed a self-review of my own code
  • depends on aio(analog sensor): fix deadlock in cyclic reading #1042

If this is a new driver or adaptor:

  • I have checked or build at least my new example (e.g. by run make examples_check)

@gen2thomas gen2thomas force-pushed the feature/platform_generic_analogpin_adaptor branch 4 times, most recently from f2cd768 to ec0ffde Compare November 26, 2023 15:38
@gen2thomas gen2thomas force-pushed the feature/platform_generic_analogpin_adaptor branch from ec0ffde to e9403ef Compare November 26, 2023 18:44
@gen2thomas gen2thomas marked this pull request as ready for review November 26, 2023 18:47
@gen2thomas gen2thomas merged commit d39848e into hybridgroup:dev Nov 26, 2023
5 checks passed
@gen2thomas gen2thomas deleted the feature/platform_generic_analogpin_adaptor branch November 26, 2023 18:47
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.

1 participant