mirror of
https://github.com/ferrous-systems/embedded-trainings-2020.git
synced 2024-11-10 10:49:34 +00:00
4882103341
and move from-scratch under the next-steps section
819 B
819 B
Interrupt handling
We haven't covered interrupt handling in the workshop but the cortex-m-rt
crate provides attributes to declare exception and interrupt handlers: #[exception]
and #[interrupt]
. You can find documentation about these attributes and how to safely share data with interrupt handlers using Mutexes in the "Concurrency" chapter of the Embedded Rust book.
Another way to deal with interrupts is to use a framework like Real-Time Interrupt-driven Concurrency (RTIC); this framework has a book that explains how you can build reactive applications using interrupts. We use this framework in the advanced level workshop.