Ewout van Bekkum | bd4906c | 2020-11-11 13:42:13 -0800 | [diff] [blame] | 1 | .. _module-pw_interrupt: |
2 | |||||
3 | ------------ | ||||
4 | pw_interrupt | ||||
5 | ------------ | ||||
6 | Pigweed's interrupt module provides a consistent interface for to determine | ||||
7 | whether one is currently executing in an interrupt context (IRQ or NMI) or not. | ||||
8 | |||||
9 | .. c:function:: bool InInterruptContext() | ||||
10 | Returns true if currently executing within an interrupt service routine | ||||
11 | handling an IRQ or NMI.:w! | ||||
12 |