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

Counter External Trigger #18940

Closed
teburd opened this issue Sep 5, 2019 · 3 comments
Closed

Counter External Trigger #18940

teburd opened this issue Sep 5, 2019 · 3 comments
Assignees
Labels
area: Counter Enhancement Changes/Updates/Additions to existing features

Comments

@teburd
Copy link
Collaborator

teburd commented Sep 5, 2019

Is your feature request related to a problem? Please describe.
I'd like to use the externally driven trigger/clock source for counters (edge causes counter to
increment) for frequency counting in a hardware agnostic way.

Describe the solution you'd like
A way to tell the counter it should be driven by an external pin. It would make sense I think to use DTS to describe the pin/clock source to use and on which edge(s) to increment on.

Describe alternatives you've considered
I can of course use the vender specific driver libraries as needed, and I will be for
an upcoming project. I'd like to do it in a vendor agnostic way.

@teburd teburd added Feature Request A request for a new feature area: Counter labels Sep 5, 2019
@carlescufi
Copy link
Member

@nordic-krch could you please comment on this feature request and see how it aligns with the current counter API design?

@henrikbrixandersen
Copy link
Member

As far I see it, that is already fully supported by the current counter API. It is just a matter of having a driver, that configures the underlying counter hardware for counting external events (I have implemented a few these out-of-tree using the counter API already).

@carlescufi carlescufi added Enhancement Changes/Updates/Additions to existing features and removed Feature Request A request for a new feature labels Mar 24, 2020
@carlescufi
Copy link
Member

Closing this based on @henrikbrixandersen 's assessment, please reopen if incorrect.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: Counter Enhancement Changes/Updates/Additions to existing features
Projects
None yet
Development

No branches or pull requests

4 participants