blob: 1bc7d219f6cab902b6ffeafe932f82e5ce511861 [file] [log] [blame]
Ewout van Bekkumbd4906c2020-11-11 13:42:13 -08001.. _module-pw_interrupt:
2
3------------
4pw_interrupt
5------------
6Pigweed's interrupt module provides a consistent interface for to determine
7whether one is currently executing in an interrupt context (IRQ or NMI) or not.
8
9.. c:function:: bool InInterruptContext()
Keir Mierleb1914022021-04-12 09:08:33 -070010
Ewout van Bekkumbd4906c2020-11-11 13:42:13 -080011 Returns true if currently executing within an interrupt service routine
12 handling an IRQ or NMI.:w!
13