Supported trigger names: IRQ_RXIDLE, IRQ_TXIDLE, IRQ_BREAK
- IRQ_RXIDLE: The handler for IRQ_RXIDLE is called reliably 31 UART bit
times after the last incoming data.
- IRQ_TXIDLE: This IRQ is triggered after at least >5 characters are sent
at once. It is triggered when the TX FIFO falls below 4 elements. At
that time, up to 5 bytes may still be in the FIFO and output shift
register.
- IRQ_BREAK: The IRQ triggers if a BREAK state is detected at RX.
Properties & side effects:
- After a BREAK, a valid character must be received before another break
can be detected.
- Each break puts a 0xff character into the input buffer.
The irq.flags() value is cleared only with a new wanted event. Do not
change the flags otherwise.
Signed-off-by: robert-hh <robert@hammelrath.com>
16 lines
404 B
C
16 lines
404 B
C
#ifndef MICROPY_INCLUDED_RP2_MODMACHINE_H
|
|
#define MICROPY_INCLUDED_RP2_MODMACHINE_H
|
|
|
|
#include "py/obj.h"
|
|
|
|
void machine_pin_init(void);
|
|
void machine_pin_deinit(void);
|
|
void machine_i2s_init0(void);
|
|
void machine_i2s_deinit_all(void);
|
|
void machine_pwm_deinit_all(void);
|
|
void machine_uart_deinit_all(void);
|
|
|
|
struct _machine_spi_obj_t *spi_from_mp_obj(mp_obj_t o);
|
|
|
|
#endif // MICROPY_INCLUDED_RP2_MODMACHINE_H
|