pub fn is_interrupt_context() -> bool
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.
true
false