Macro riot_wrappers::interrupt
source · macro_rules! interrupt { ($isr_name:ident, $rust_handler:expr) => { ... }; }
👎Deprecated: See module documentation: This needs to be done manually per platform; it is incomplete as riot-wrappers provides no method of enabling platform specific interrupts, and provides no other access to configure the peripheral through registers. If it is re-introduced, it will likely carry an
InIsr
token into the function.Expand description
Wrap a Rust interrupt handler in an extern “C” wrapper that does the post-return cleaups.
As with all code executed in interrupt contexts, the wrapped function should not panic.
Caveats
This is Cortex-M specific.