aboutsummaryrefslogtreecommitdiff
path: root/pw_interrupt/docs.rst
blob: 1bc7d219f6cab902b6ffeafe932f82e5ce511861 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
.. _module-pw_interrupt:

------------
pw_interrupt
------------
Pigweed's interrupt module provides a consistent interface for to determine
whether one is currently executing in an interrupt context (IRQ or NMI) or not.

.. c:function:: bool InInterruptContext()

  Returns true if currently executing within an interrupt service routine
  handling an IRQ or NMI.:w!