Skip to content

Commit

Permalink
docs: Add missing state parameter to machine.enable_irq docs.
Browse files Browse the repository at this point in the history
  • Loading branch information
InPermutation authored and dpgeorge committed Sep 20, 2021
1 parent 83498fa commit f8075f1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/machine.rst
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ Functions
original state, before :func:`machine.disable_irq()` was called.


.. method:: machine.enable_irq()
.. method:: machine.enable_irq(state)

Re-enable interrupt requests. The *state* parameter should be the value
that was returned from the most recent call to the
Expand Down Expand Up @@ -96,4 +96,4 @@ The ``machine`` module allows you to read from the device's memory, getting 1
byte (8 bits; ``mem8``), 2 byte (16 bits; ``mem16``), or 4 byte (32 bits;
``mem32``) words from physical addresses. For example: ``mem8[0x00]`` reads 1
byte on physical address ``0x00``. This has a number of uses, for example if
you'd like to read data from the nRF51 registers.
you'd like to read data from the nRF51 registers.

0 comments on commit f8075f1

Please sign in to comment.