-
Notifications
You must be signed in to change notification settings - Fork 225
[Book] How to modularize & grow your code w/ 1.0 #444
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
Comments
You can use the We are a bit limited by the current procmacro support in Rust. As RTIC needs to perform system-wide analysis all task/resource information needs to be in a single item (the Food for thought: You can think of RTIC just as The message passing, timers etc. are just icing on the cake. One can have other abstractions on top of RTIC, e.g., asynchronous actors or concurrent reactive objects (essentially actors with both synchronous asynchronous communication). In this sense RTIC is just the lowest level of abstraction needed for building concurrent applications. |
Related to this: Issue #639 |
I would be very interested in the available higher level abstractions available the work nicely along RTIC. For example I could use a pub/sub (or event-broadcast) system that 'unlocks'/starts one or more tasks when some event has happened. Think Semaphores/Eventgroups as available in other RTOSses. Having a (curated) list of available options (maybe even with some example code! 👍🏻) would be of great help to use RTIC in more advanced scenarios (i.e. real world embedded work). |
There is an Actor API PR that provides higher level of abstraction (broadcasting). |
It's easy to end up with a very large src/main.rs /
mod app
with RTIC. Having a next steps section with ideas on how to grow and modularize code would be a nice way to end the book.Could also touch on creating structs for multiple shared resources, and using an impl block to keep their code together.
The text was updated successfully, but these errors were encountered: