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() |
Keir Mierle | b191402 | 2021-04-12 09:08:33 -0700 | [diff] [blame] | 10 | |
Ewout van Bekkum | bd4906c | 2020-11-11 13:42:13 -0800 | [diff] [blame] | 11 | Returns true if currently executing within an interrupt service routine |
| 12 | handling an IRQ or NMI.:w! |
| 13 | |