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

Timer V2 API (for thumbv7) #690

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Timer V2 API (for thumbv7) #690

wants to merge 3 commits into from

Conversation

glaeqen
Copy link
Contributor

@glaeqen glaeqen commented Jun 9, 2023

Summary

Old API for timers was quite bare-bone. New one tries to expose more functionality in a typesafe and ergonomic way.

New abstraction is not complete in terms of what underlying peripheral has to offer, eg. event counting or capture channels are not exposed. However it should be possible to extend it in the future.

thumbv6m implementation was omitted because

  • it lacks clock::v2 support for now
  • current implementation of traits assumes availability of timers in "even-odd" pairs, which makes it not exactly trivial to port.

Checklist

  • CHANGELOG.md for the BSP or HAL updated
  • All new or modified code is well documented, especially public items
  • No new warnings or clippy suggestions have been introduced (see CI or check locally)
  • unsafe documented
  • TODOs resolved

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.

None yet

1 participant