Skip to content

Commit ce8fc89

Browse files
committed
docs/library/machine.UART: Extend the documentation for UART.irq.
For more ports and trigger options, based on the state of PR #14040. Signed-off-by: robert-hh <robert@hammelrath.com>
1 parent e4131f8 commit ce8fc89

File tree

1 file changed

+40
-2
lines changed

1 file changed

+40
-2
lines changed

docs/library/machine.UART.rst

Lines changed: 40 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -193,14 +193,49 @@ Methods
193193

194194
- ``UART.IRQ_RXIDLE`` interrupt after receiving at least one character
195195
and then the RX line goes idle.
196+
- ``UART.IRQ_RX`` interrupt after each received character.
197+
- ``UART.TX_IDLE`` interrupt after or while the last character(s) of
198+
a message are of have been sent.
199+
- ``UART.BREAK`` interrupt when a break state is detected at RX
196200

197201
- *hard* if true a hardware interrupt is used. This reduces the delay
198202
between the pin change and the handler being called. Hard interrupt
199203
handlers may not allocate memory; see :ref:`isr_rules`.
200204

201205
Returns an irq object.
202206

203-
Availability: renesas-ra, stm32.
207+
Due to limitations of the hardware not all trigger events are available at all ports.
208+
209+
.. table:: Availability of triggers
210+
:align: center
211+
212+
============== ======= === ====== =====
213+
Port / Trigger RX_IDLE RX TXIDLE BREAK
214+
============== ======= === ====== =====
215+
STM32 yes
216+
ESP32 yes yes
217+
RP2040 yes yes yes
218+
MIMXRT yes yes
219+
SAMD yes yes
220+
RENESAS-RA yes
221+
CC3200 yes
222+
============== ======= === ====== =====
223+
224+
225+
.. note::
226+
- At the RP2040 port UART.TXIDLE is only triggered when the message
227+
is longer than 5 characters and the trigger happens when still 5 characters
228+
are to be sent.
229+
230+
- At the SAMD port UART.TXIDLE is triggered while the last character is sent.
231+
232+
- At the RP2040 port UART.BREAK needs receiving valid characters for triggering
233+
again.
234+
235+
- The ESP32 port does not support the option hard=True.
236+
237+
238+
Availability: renesas-ra, stm32, esp32, rp2040, mimxrt, samd, cc3200.
204239

205240
Constants
206241
---------
@@ -213,7 +248,10 @@ Constants
213248
Availability: esp32, mimxrt, renesas-ra, rp2, stm32.
214249

215250
.. data:: UART.IRQ_RXIDLE
251+
UART.IRQ_RX
252+
UART.IRQ_TXIDLE
253+
UART.IRQ_BREAK
216254

217255
IRQ trigger sources.
218256

219-
Availability: stm32.
257+
Availability: renesas-ra, stm32, esp32, rp2040, mimxrt, samd, cc3200.

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy