diff options
Diffstat (limited to 'os/hal/ports/STM32/LLD/USARTv2/hal_uart_lld.h')
-rw-r--r-- | os/hal/ports/STM32/LLD/USARTv2/hal_uart_lld.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/os/hal/ports/STM32/LLD/USARTv2/hal_uart_lld.h b/os/hal/ports/STM32/LLD/USARTv2/hal_uart_lld.h index abb9bce0a..84afee0e1 100644 --- a/os/hal/ports/STM32/LLD/USARTv2/hal_uart_lld.h +++ b/os/hal/ports/STM32/LLD/USARTv2/hal_uart_lld.h @@ -586,6 +586,16 @@ typedef struct { uartecb_t rxerr_cb;
/* End of the mandatory fields.*/
/**
+ * @brief Receiver timeout callback.
+ */
+ uartcb_t timeout_cb;
+ /**
+ * @brief Receiver timeout value in terms of number of bit duration.
+ * @details Set it to 0 when you want to handle IDLE interrupt instead of
+ * hardware timeout.
+ */
+ uint32_t timeout;
+ /**
* @brief Bit rate.
*/
uint32_t speed;
|