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

Improvements to the time and watchdog interface #174

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

Conversation

JanekGraff
Copy link
Contributor

  • Add types for MicroSeconds, MilliSeconds and Seconds to time.rs and add conversions between them (the ones that don't loose precision while converting.
  • Update the IwdgTimeout struct to be able to construct it from any type that implements Into<MicroSeconds> (The old parameter in Hertz can still be used since Hertz implements Into<MicroSeconds> as well)

There is probably some more interfaces that could benefit from a similar change in generic parameters to also support (Micro/Milli)Seconds instead of only Hertz. Feel free to list them here and I'll try to add/change them if i got some time

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