logoalt Hacker News

mrdataesqyesterday at 12:19 AM3 repliesview on HN

Another reason why async Rust is great: https://rtic.rs/

"The hardware accelerated Rust RTOS" -- it can use your interrupt controller as a scheduler.


Replies

the__alchemistyesterday at 12:28 AM

I've used RTIC in a few cases. In practice, it's a thin wrapper over interrupt handlers and locks on resources in them. These days, I prefer using macros to simplify the (natively onerous: many <> brackets with Mutex, RefCell etc.!) locking and initialization of global variables.

It also has software tasks, which is presumably the Embassy tie-in you mention.

show 1 reply
wrsyesterday at 12:54 AM

So can Embassy -- look at InterruptExecutor.

show 1 reply
5d41402abc4byesterday at 8:59 AM

>it can use your interrupt controller as a scheduler

Isnt' that how schedulers always work?