RTIC Dispatchers - Do I need to use any free interrupt for a software task?
⚓ Rust 📅 2026-03-02 👤 surdeus 👁️ 2Hello,
I am currently learning Rust for embedded devices and one thing that isn't clear to me in the Rust RTIC handbook is what exactly is a dispatcher for a software task.
According to the Rust RTIC book :
" All software tasks at the same priority level share an interrupt handler acting as an async executor dispatching the software tasks. This list of dispatchers, dispatchers = [FreeInterrupt1, FreeInterrupt2, ...] is an argument to the #[app] attribute, where you define the set of free and usable interrupts."
If I understand that correctly, I need to assign an unused Cortex-M hardware interrupt to my software task so that it can be used as the dispatcher. Am I understanding that correctly?
So in other words, I should assign an interrupt I don't use elsewhere in my app to be used as my interrupt handler for my same priority level task?
Thanks
1 post - 1 participant
🏷️ Rust_feed