Skip to content

Commit 9b3b3a5

Browse files
alectric-trdpgeorge
authored andcommitted
docs/library: Fix typos under I2CTarget irq method description.
There were a few typos in the documentation for the `I2CTarget.irq` method description where `IRQ_ADDR_MATCH_READ` was used, however `IRQ_ADDR_MATCH_WRITE` should have been used. Fixes issue micropython#18470. Signed-off-by: Alex Tran <alex.t.tran@gmail.com>
1 parent 1c47db3 commit 9b3b3a5

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

docs/library/machine.I2CTarget.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ General Methods
126126

127127
- ``IRQ_ADDR_MATCH_READ`` indicates that the target was addressed by a
128128
controller for a read transaction.
129-
- ``IRQ_ADDR_MATCH_READ`` indicates that the target was addressed by a
129+
- ``IRQ_ADDR_MATCH_WRITE`` indicates that the target was addressed by a
130130
controller for a write transaction.
131131
- ``IRQ_READ_REQ`` indicates that the controller is requesting data, and this
132132
request must be satisfied by calling `I2CTarget.write` with the data to be
@@ -141,7 +141,7 @@ General Methods
141141

142142
Note the following restrictions:
143143

144-
- ``IRQ_ADDR_MATCH_READ``, ``IRQ_ADDR_MATCH_READ``, ``IRQ_READ_REQ`` and
144+
- ``IRQ_ADDR_MATCH_READ``, ``IRQ_ADDR_MATCH_WRITE``, ``IRQ_READ_REQ`` and
145145
``IRQ_WRITE_REQ`` must be handled by a hard IRQ callback (with the *hard* argument
146146
set to ``True``). This is because these events have very strict timing requirements
147147
and must usually be satisfied synchronously with the hardware event.

0 commit comments

Comments
 (0)