diff options
| author | Bernhard Boser <boser@berkeley.edu> | 2021-01-17 19:33:32 -0800 |
|---|---|---|
| committer | Bernhard Boser <boser@berkeley.edu> | 2021-01-17 19:33:32 -0800 |
| commit | 07a9593abcb86c676f2f60f487e1bad4805fb0bb (patch) | |
| tree | dea3556f9bc0c7bf06793bcb2378add36684c069 | |
| parent | e867d1915e1ebde11518a4cb6617a8eb2b374a46 (diff) | |
add flow control info to busio_uart_obj_t
| -rw-r--r-- | ports/nrf/common-hal/busio/UART.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/ports/nrf/common-hal/busio/UART.h b/ports/nrf/common-hal/busio/UART.h index a25116291..2eaf58440 100644 --- a/ports/nrf/common-hal/busio/UART.h +++ b/ports/nrf/common-hal/busio/UART.h @@ -42,10 +42,13 @@ typedef struct { uint32_t timeout_ms; ringbuf_t ringbuf; - uint8_t rx_char; // EasyDMA buf + uint8_t rx_char; // EasyDMA buf + bool rx_paused; // set by irq if no space in rbuf uint8_t tx_pin_number; uint8_t rx_pin_number; + uint8_t cts_pin_number; + uint8_t rts_pin_number; } busio_uart_obj_t; void uart_reset(void); |
