stm32-rs / stm32l4xx-hal

A Hardware abstraction layer for the stm32l432xx series chips written in rust.
157 stars 104 forks source link

time: require a type when only milliseconds are supported #249

Closed karlp closed 3 years ago

karlp commented 3 years ago

The from method is for milliseconds to Hz conversion, so make sure it only accepts a milliseconds type, given that it only handles 0..1000.

Signed-off-by: Karl Palsson karlp@etactica.com