hashmismatch / freertos.rs

A Rust wrapper for FreeRTOS.
231 stars 22 forks source link

Support for high tick rates in the units API #10

Open rudib opened 6 years ago

rudib commented 6 years ago

The current (0.1.0) shim API returns the number of ticks elapsed for a single millisecond, stored in an integer. With a tick rate of, for instance, 600Hz, a 1-second duration cannot be accurately expressed.

Note that such high tick rates aren't typical of embedded projects and higher precision would be better served with hardware timers.