korken89 / fugit

`fugit` provides a comprehensive library of `Duration` and `Instant` for the handling of time in embedded systems, doing all it can at compile time.
Apache License 2.0
55 stars 16 forks source link

Why are TimerRateU32 and TimerRateU64 based on Duration instead of Rate? #31

Closed haata closed 2 years ago

haata commented 2 years ago

https://github.com/korken89/fugit/blob/bcc0a1d7ef0a74c2cbb13d50def4461166869c4c/src/aliases.rs#L111-L117

Maybe there's a specific reason TimerRateU32 and TimerRateU64 are Durations instead of Rate? Or is this just a typo? I'll submit a PR just in case.