File tree 1 file changed +7
-9
lines changed
1 file changed +7
-9
lines changed Original file line number Diff line number Diff line change @@ -24,17 +24,15 @@ Interrupt related functions
24
24
.. function :: disable_irq()
25
25
26
26
Disable interrupt requests.
27
- Returns the previous IRQ state: `` False ``/`` True `` for disabled/enabled IRQs
28
- respectively. This return value can be passed to enable_irq to restore
29
- the IRQ to its original state.
27
+ Returns the previous IRQ state which should be considered an opaque value.
28
+ This return value should be passed to the `` enable_irq `` function to restore
29
+ interrupts to their original state, before `` disable_irq `` was called .
30
30
31
- .. function :: enable_irq(state=True )
31
+ .. function :: enable_irq(state)
32
32
33
- Enable interrupt requests.
34
- If ``state `` is ``True `` (the default value) then IRQs are enabled.
35
- If ``state `` is ``False `` then IRQs are disabled. The most common use of
36
- this function is to pass it the value returned by ``disable_irq `` to
37
- exit a critical section.
33
+ Re-enable interrupt requests.
34
+ The ``state `` parameter should be the value that was returned from the most
35
+ recent call to the ``disable_irq `` function.
38
36
39
37
Power related functions
40
38
-----------------------
You can’t perform that action at this time.
0 commit comments