Skip to content

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