-
Notifications
You must be signed in to change notification settings - Fork 56
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
RTOS Support #32
Comments
Most RTOS APIs are already integrated into the standard library, for things like threads and mutexes. Other APIs that are not expressible via the standard library we recommend using the freertos C functions from esp-idf-sys. If you have ideas for safe wrappers for those, PRs are most welcome :). |
Thank you. My main concern is about the timings, I need to run task at a specific frequency that is not dependent on the Task execution time (using I use Rust since March, so I am sorry if my low level understanding is still limited in this language. And I wish I could do a PR XD I still need more experience before doing so! (But would be pleased to do so once I get the knowledge and the confidence) Thanks for your help |
Yes, but sort of no. A thread is a FreeRTOS task, but instead of the Rust standard library calling FreeRTOS APIs, it actually calls libc APIs, specifically With all that said, they are still FreeRTOS tasks underneath, so you can get the handle to the task with https://github.com/esp-rs/esp-idf-hal/blob/75b4e4f406c91d8b5e444343b42518b3a176dbdb/src/interrupt.rs#L108 and use whatever raw C FreeRTOS API you like :) |
Ok great! For the Book, I don't know if it really would be interesting for others, but when coming from Real Time Embedded Systems, I think having a Section about RTOS, even just with your previous explanation, could be useful for anyone concerned by this topic! Thanks for everything, |
Hello!
Is there any current support for a
RTOS
withesp-rs
(for example a safe API to work with the ESP-IDFFreeRTOS
) ?And if yes could it be documented in the
Book
? (And if not maybe add a part or note about the status ofRTOS
withesp-rs
).(I am new to this environment, sorry if the question isn't relevant.)
Thank you for your help
The text was updated successfully, but these errors were encountered: