-
Notifications
You must be signed in to change notification settings - Fork 60
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add delay provider #5
Comments
I've partially implemented something, but then realized that FreeRTOS does not provide accurate timing below 1ms ( |
I basically agree. An implementation could check if a given delay is above the minimum delay allowed based on configTICK_RATE_HZ and have some documentation about limited granularity. I'm fine with accepting a PR to implement FreeRTOS based timing functions. There is also some API for "waitUntil" which is worth a look. |
This and other projects may require a delay provider (for example: https://github.com/stm32-rs/stm32f4xx-hal/blob/master/src/delay.rs) that provides delayms and delayus functions. lt should be possible to provide this functionality as part of this package. I am new to rust (I thought it could be a better option than c), but I use
pdMS_TO_TICKS
in C.The text was updated successfully, but these errors were encountered: