mirror of https://github.com/periph/devices
physic: Improve Frequency rounding, add Period() (#386)
- Improve rounding and add unit tests to confirm. - Period() is the same function than Duration() but better describes what is returned. - Fix support for negative value. - Upgrade all call sites inside periph. - Fix Frequency documentation that incorrectly stated it's an int32, it's in fact an int64. - Duration() will be removed in v4.0.0 as part of issue #379.pull/1/head
parent
c52d26920b
commit
441dfbc2a4
Loading…
Reference in New Issue