Function is_interrupt_context

Source
pub fn is_interrupt_context() -> bool
Expand description

Check if we are executing in an interrupt handler or not.

Returns true if the CPU is executing in an interrupt handler. Returns false if the chip is executing in thread mode.