@@ -193,14 +193,49 @@ Methods
193
193
194
194
- ``UART.IRQ_RXIDLE `` interrupt after receiving at least one character
195
195
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
196
200
197
201
- *hard * if true a hardware interrupt is used. This reduces the delay
198
202
between the pin change and the handler being called. Hard interrupt
199
203
handlers may not allocate memory; see :ref: `isr_rules `.
200
204
201
205
Returns an irq object.
202
206
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.
204
239
205
240
Constants
206
241
---------
@@ -213,7 +248,10 @@ Constants
213
248
Availability: esp32, mimxrt, renesas-ra, rp2, stm32.
214
249
215
250
.. data :: UART.IRQ_RXIDLE
251
+ UART.IRQ_RX
252
+ UART.IRQ_TXIDLE
253
+ UART.IRQ_BREAK
216
254
217
255
IRQ trigger sources.
218
256
219
- Availability: stm32.
257
+ Availability: renesas-ra, stm32, esp32, rp2040, mimxrt, samd, cc3200 .
0 commit comments